Skip to content

Commit

Permalink
[chore](clang-tidy): add bugprone linters
Browse files Browse the repository at this point in the history
Signed-off-by: pengyu <[email protected]>
  • Loading branch information
py023 committed Jan 4, 2024
1 parent b2a28fc commit 3609aa2
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ Checks: |
clang-diagnostic-*,
clang-analyzer-*,
bugprone-redundant-branch-condition,
bugprone-use-after-move,
bugprone-bool-pointer-implicit-conversion,
bugprone-unused-raii,
bugprone-fold-init-type,
modernize-*,
-modernize-use-trailing-return-type,
-modernize-use-nodiscard,
Expand All @@ -24,10 +28,9 @@ Checks: |
performance-faster-string-find,
performance-inefficient-algorithm,
performance-move-const-arg
WarningsAsErrors: '*'
WarningsAsErrors: "*"
CheckOptions:
- key: readability-function-size.LineThreshold
value: '80'
- key: readability-function-cognitive-complexity.Threshold
value: '50'

- key: readability-function-size.LineThreshold
value: "80"
- key: readability-function-cognitive-complexity.Threshold
value: "50"

0 comments on commit 3609aa2

Please sign in to comment.