blob: 51da32b301646e8c4b32cb5828ee6579b6f71bd9 [file] [log] [blame]
---
# Disabled some clang-analyzer static checks, need some more investigation.
# TODO(hzeller) fix and re-enable clang-analyzer checks.
# TODO(hzeller) Looking over magic numbers might be good, but probably
# not worthwhile hard-failing
# TODO(hzeller) Explore anofalloff suggestions.
#
# readability-make-member-function-const is great, but it also suggests that
# in cases where we return a non-const pointer. So good to check, not by
# default.
#
# readability-qualified-auto is useful in general, however it suggests
# to convert iterators (e.g. std::string_view::begin()) to the pointer it
# returns; however since the iterator is implementation defined, this is not
# a valid assertion. Running the check every now and then manually and
# fixing all the non-iterator cases is useful though. Off by default.
##
Checks: >
clang-diagnostic-*,clang-analyzer-*,
-clang-analyzer-core.NonNullParamChecker,
-clang-analyzer-cplusplus.NewDeleteLeaks,
-clang-diagnostic-unused-const-variable,
abseil-*,-abseil-no-namespace,
readability-*,
-readability-braces-around-statements,
-readability-else-after-return,
-readability-function-cognitive-complexity,
-readability-implicit-bool-conversion,
-readability-isolate-declaration,
-readability-magic-numbers,
-readability-make-member-function-const,
-readability-named-parameter,
-readability-qualified-auto,
-readability-redundant-access-specifiers,
-readability-use-anyofallof,
-readability-identifier-length,
-readability-uppercase-literal-suffix,
-readability-convert-member-functions-to-static, # creates false positive ?
google-*,
-google-readability-braces-around-statements,
-google-readability-todo,
performance-*,
bugprone-*,
-bugprone-branch-clone,
-bugprone-easily-swappable-parameters,
-bugprone-exception-escape,
-bugprone-move-forwarding-reference,
-bugprone-narrowing-conversions,
-bugprone-reserved-identifier,
modernize-use-override,
misc-*,
-misc-no-recursion,
-misc-non-private-member-variables-in-classes,
-misc-redundant-expression,
-misc-unused-parameters,
WarningsAsErrors: ''
HeaderFilterRegex: ''
AnalyzeTemporaryDtors: false
...