2 # - misc-definitions-in-headers
3 # TODO: Used in deviceutil.hpp and datautil.hpp. Maybe to const static?
4 # - misc-non-private-member-variables-in-classes
5 # protected member variables are used all over the place...
7 # TODO: Replace all `assert("ex")` with `throw Ex()` and activate check!
8 # - performance-unnecessary-value-param
10 # - readability-avoid-const-params-in-decls
11 # TODO: Keep Decl and Def signatures the same! Recheck after
12 # performance-unnecessary-value-param solved! Maybe `const type` makes
14 # https://stackoverflow.com/questions/52916410/why-is-const-allowed-in-function-declarations
15 # - readability-braces-around-statements
16 # Even with `ShortStatementLines` = 3 there are too many false positives.
17 # -readability-convert-member-functions-to-static,
18 # TODO: Could this be useful in some cases?
19 # - readability-inconsistent-declaration-parameter-name
20 # This check shows to many false positives for Qt signal declarations. We can
21 # use CppChecks "funcArgNamesDifferent" instead.
22 # - readability-magic-numbers
23 # Magic numbers are ok. Maybe replace with macros(?) in the future?
27 # -google-readability-braces-around-statements,
28 # -google-readability-todo,
30 # -modernize-raw-string-literal
36 google-explicit-constructor,
38 -misc-definitions-in-headers,
39 -misc-non-private-member-variables-in-classes,
42 -performance-unnecessary-value-param,
44 -readability-avoid-const-params-in-decls,
45 -readability-braces-around-statements,
46 -readability-convert-member-functions-to-static,
47 -readability-inconsistent-declaration-parameter-name,
48 -readability-magic-numbers,
51 HeaderFilterRegex: 'src/.*'
52 AnalyzeTemporaryDtors: false
56 - key: cert-dcl16-c.NewSuffixes
58 - key: cppcoreguidelines-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic
60 - key: google-readability-braces-around-statements.ShortStatementLines
62 - key: google-readability-function-size.StatementThreshold
64 - key: google-readability-namespace-comments.ShortNamespaceLines
66 - key: google-readability-namespace-comments.SpacesBeforeComments
68 - key: modernize-loop-convert.MaxCopySize
70 - key: modernize-loop-convert.MinConfidence
72 - key: modernize-loop-convert.NamingStyle
74 - key: modernize-pass-by-value.IncludeStyle
76 - key: modernize-replace-auto-ptr.IncludeStyle
78 - key: modernize-use-nullptr.NullMacros
80 - key: readability-braces-around-statements.ShortStatementLines
82 - key: readability-implicit-bool-conversion.AllowPointerConditions
84 - key: readability-implicit-bool-conversion.AllowIntegerConditions
86 - key: readability-redundant-member-init.IgnoreBaseInCopyConstructors