Skip to content

Commit ea0f861

Browse files
authored
Enable readability-identifier-length and tune its settings (#405)
1 parent 088e8c2 commit ea0f861

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.clang-tidy

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ Checks: >
2727
-modernize-avoid-c-arrays,
2828
-modernize-loop-convert,
2929
-modernize-use-trailing-return-type,
30-
-readability-identifier-length,
3130
-readability-magic-numbers
3231
3332
WarningsAsErrors: "*"
@@ -84,5 +83,9 @@ CheckOptions:
8483
# Functions with scores beyond 15 are typically flagged as potentially problematic (empirically)
8584
- key: readability-function-cognitive-complexity.Threshold
8685
value: 20 # default: 25
86+
- key: readability-identifier-length.MinimumVariableNameLength
87+
value: 1
88+
- key: readability-identifier-length.MinimumParameterNameLength
89+
value: 1
8790
- key: misc-include-cleaner.IgnoreHeaders
8891
value: '(opencv2/.*|__chrono/.*)'

0 commit comments

Comments
 (0)