drmario64/.clang-tidy
2024-01-10 20:30:03 -03:00

40 lines
1.3 KiB
YAML

Checks: >
readability-*,
-readability-magic-numbers,
-readability-uppercase-literal-suffix,
-readability-non-const-parameter,
-readability-else-after-return,
clang-diagnostic-*,
clang-analyzer-*,
-clang-analyzer-security.insecureAPI.*,
-clang-analyzer-deadcode.DeadStores,
-clang-analyzer-core.uninitialized.ArraySubscript,
-clang-analyzer-core.UndefinedBinaryOperatorResult,
-clang-analyzer-core.CallAndMessage, # Checks for unset variables passed to functions
bugprone*,
-bugprone-macro-parentheses,
-bugprone-reserved-identifier,
-bugprone-narrowing-conversions,
-bugprone-too-small-loop-variable,
-bugprone-integer-division,
-bugprone-sizeof-expression,
-bugprone-suspicious-include,
modernize*,
-bugprone-branch-clone,
-bugprone-signed-char-misuse,
-bugprone-incorrect-roundings,
performance*,
portability*,
diagnostic-*,
analyzer-*,
misc*,
-misc-no-recursion
WarningsAsErrors: ''
HeaderFilterRegex: '^(src|include)\/.*\.h$'
FormatStyle: 'file'
CheckOptions:
# Require argument names to match exactly (instead of allowing a name to be a prefix/suffix of another)
# Note: 'true' is expected by clang-tidy 12+ but '1' is used for compatibility with older versions
- key: readability-inconsistent-declaration-parameter-name.Strict
value: 1