Skip to content

Commit

Permalink
chore: tweak .clang-tidy
Browse files Browse the repository at this point in the history
1. Increase cognitive complexity threshold to 50. The default value of
   25 marks a lot of functions, which is too noisy to be useful.
2. Ignore int8_t in signed char to integer conversion check.

Signed-off-by: Yuxuan Shui <[email protected]>
  • Loading branch information
yshui committed Feb 16, 2024
1 parent 2b52edd commit 7c15a14
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,9 @@ CheckOptions:
value: 255.0;1.0;
- key: readability-function-cognitive-complexity.IgnoreMacros
value: true
- key: readability-function-cognitive-complexity.Threshold
value: 50
- key: readability-function-cognitive-complexity.DescribeBasicIncrements
value: true
- key: bugprone-signed-char-misuse.CharTypdefsToIgnore
value: int8_t

0 comments on commit 7c15a14

Please sign in to comment.