Skip to content

Commit aa9da60

Browse files
authored
cleanup(storage): enforce cognitive complexity limits (#9435)
Enable the clang-tidy `readability-function-cognitive-complexity` check (as an error) for `google/cloud/storage/`. I think we should turn this on everywhere, but needed to start somewhere.
1 parent 8a2efcf commit aa9da60

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.clang-tidy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,4 @@ CheckOptions:
9999
- { key: readability-identifier-naming.StaticConstantPrefix, value: k }
100100
- { key: readability-implicit-bool-conversion.AllowIntegerConditions, value: 1 }
101101
- { key: readability-implicit-bool-conversion.AllowPointerConditions, value: 1 }
102+
- { key: readability-function-cognitive-complexity.IgnoreMacros, value: 1 }

google/cloud/storage/.clang-tidy

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
InheritParentConfig: true
3+
4+
Checks: >
5+
readability-function-cognitive-complexity

0 commit comments

Comments
 (0)