[Chore](clang-tidy)enable readability-function-size.LineThreshold and readability-functi…

set readability-function-size.LineThreshold to 80 and enable readability-function-cognitive-complexity
This commit is contained in:
Pxl
2023-11-16 20:37:12 +08:00
committed by GitHub
parent 492a22dced
commit fd6a2cba5e

View File

@ -14,7 +14,6 @@ Checks: |
readability-*,
-readability-identifier-length,
-readability-implicit-bool-conversion,
-readability-function-cognitive-complexity,
-readability-magic-numbers,
-readability-else-after-return,
-readability-inconsistent-declaration-parameter-name,
@ -26,3 +25,8 @@ Checks: |
performance-inefficient-algorithm,
performance-move-const-arg
WarningsAsErrors: '*'
CheckOptions:
- key: readability-function-size.LineThreshold
value: '80'
- key: readability-function-cognitive-complexity.Threshold
value: '50'