| 1 |
--- |
| 2 |
Checks: |- |
| 3 |
bugprone-*, |
| 4 |
cert-*, |
| 5 |
google-readability-casting, |
| 6 |
misc-*, |
| 7 |
readability-*, |
| 8 |
|
| 9 |
-bugprone-assignment-in-if-condition, |
| 10 |
-bugprone-branch-clone, |
| 11 |
-bugprone-easily-swappable-parameters, |
| 12 |
-bugprone-inc-dec-in-conditions, |
| 13 |
-bugprone-multi-level-implicit-pointer-conversion, |
| 14 |
-bugprone-narrowing-conversions, |
| 15 |
-bugprone-not-null-terminated-result, |
| 16 |
-bugprone-sizeof-expression, |
| 17 |
-bugprone-suspicious-string-compare, |
| 18 |
-cert-dcl03-c, |
| 19 |
-cert-dcl16-c, |
| 20 |
-clang-analyzer-deadcode.DeadStores, |
| 21 |
-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling, |
| 22 |
-clang-analyzer-unix.Malloc, |
| 23 |
-clang-analyzer-valist.Uninitialized, |
| 24 |
-clang-analyzer-optin.core.EnumCastOutOfRange, |
| 25 |
-misc-include-cleaner, |
| 26 |
-misc-macro-parentheses, |
| 27 |
-misc-no-recursion, |
| 28 |
-misc-static-assert, |
| 29 |
-misc-unused-parameters, |
| 30 |
-readability-avoid-nested-conditional-operator, |
| 31 |
-readability-avoid-unconditional-preprocessor-if, |
| 32 |
-readability-braces-*, |
| 33 |
-readability-cognitive-complexity, |
| 34 |
-readability-else-after-return, |
| 35 |
-readability-function-cognitive-complexity, |
| 36 |
-readability-identifier-length, |
| 37 |
-readability-isolate-declaration, |
| 38 |
-readability-magic-numbers, |
| 39 |
-readability-math-missing-parentheses, |
| 40 |
-readability-non-const-parameter, |
| 41 |
-readability-redundant-declaration, |
| 42 |
-readability-uppercase-literal-suffix, |
| 43 |
-clang-analyzer-core.UndefinedBinaryOperatorResult |
| 44 |
|
| 45 |
# TODO: remove `-clang-analyzer-core.UndefinedBinaryOperatorResult` when we |
| 46 |
# upgrade to Clang >=18 (it's a false positive ) |
| 47 |
|
| 48 |
WarningsAsErrors: |- |
| 49 |
cert-*, |
| 50 |
clang-analyzer-*, |
| 51 |
misc-*, |
| 52 |
readability-*, |
| 53 |
-readability-non-const-parameter, |
| 54 |
|
| 55 |
HeaderFilterRegex: 'contrib/ucw/*.h' |
| 56 |
CheckOptions: |
| 57 |
- key: readability-identifier-naming |
| 58 |
value: 'lower_case' |
| 59 |
- key: readability-function-size.StatementThreshold |
| 60 |
value: '400' |
| 61 |
- key: readability-function-size.LineThreshold |
| 62 |
value: '500' |