2 # - bugprone-easily-swappable-parameters
4 # - bugprone-suspicious-include
5 # Too many false positives in "build/smuview_autogen". Maybe activate again
6 # when HeaderFilterRegex is working correctly.
7 # - misc-definitions-in-headers
8 # TODO: Used in deviceutil.hpp and datautil.hpp. Maybe to const static?
9 # - misc-non-private-member-variables-in-classes
10 # protected member variables are used all over the place...
11 # - misc-static-assert
12 # TODO: Replace all `assert("ex")` with `throw Ex()` and activate check!
14 # We do use recursions
15 # - performance-unnecessary-value-param
17 # - readability-avoid-const-params-in-decls
18 # TODO: Keep Decl and Def signatures the same! Recheck after
19 # performance-unnecessary-value-param solved! Maybe `const type` makes
21 # https://stackoverflow.com/questions/52916410/why-is-const-allowed-in-function-declarations
22 # - readability-braces-around-statements
23 # Even with `ShortStatementLines` = 3 there are too many false positives.
24 # - readability-convert-member-functions-to-static,
25 # TODO: Could this be useful in some cases?
26 # - readability-inconsistent-declaration-parameter-name
27 # This check shows to many false positives for Qt signal declarations. We can
28 # use CppChecks "funcArgNamesDifferent" instead.
29 # - readability-magic-numbers
30 # Magic numbers are ok. Maybe replace with macros(?) in the future?
31 # - readability-redundant-access-specifiers
32 # Used to often in header files, also not complatible with Qt access specifiers.
35 # - readability-function-cognitive-complexity
37 # - readability-use-anyofallof
38 # Foreach loops are ok for now
42 # -google-readability-braces-around-statements,
43 # -google-readability-todo,
45 # -modernize-raw-string-literal
49 -bugprone-easily-swappable-parameters,
50 -bugprone-suspicious-include,
53 google-explicit-constructor,
55 -misc-definitions-in-headers,
56 -misc-non-private-member-variables-in-classes,
60 -performance-unnecessary-value-param,
62 -readability-avoid-const-params-in-decls,
63 -readability-braces-around-statements,
64 -readability-convert-member-functions-to-static,
65 -readability-inconsistent-declaration-parameter-name,
66 -readability-magic-numbers,
67 -readability-redundant-access-specifiers,
68 -readability-function-cognitive-complexity,
69 -readability-use-anyofallof,
72 HeaderFilterRegex: '^src/.*$'
73 AnalyzeTemporaryDtors: false
77 - key: cert-dcl16-c.NewSuffixes
79 - key: cppcoreguidelines-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic
81 - key: google-readability-braces-around-statements.ShortStatementLines
83 - key: google-readability-function-size.StatementThreshold
85 - key: google-readability-namespace-comments.ShortNamespaceLines
87 - key: google-readability-namespace-comments.SpacesBeforeComments
89 - key: modernize-loop-convert.MaxCopySize
91 - key: modernize-loop-convert.MinConfidence
93 - key: modernize-loop-convert.NamingStyle
95 - key: modernize-pass-by-value.IncludeStyle
97 - key: modernize-replace-auto-ptr.IncludeStyle
99 - key: modernize-use-nullptr.NullMacros
101 - key: readability-braces-around-statements.ShortStatementLines
103 - key: readability-implicit-bool-conversion.AllowPointerConditions
105 - key: readability-implicit-bool-conversion.AllowIntegerConditions
107 - key: readability-redundant-member-init.IgnoreBaseInCopyConstructors
109 - key: readability-identifier-length.MinimumVariableNameLength
111 - key: readability-identifier-length.MinimumParameterNameLength
113 - key: readability-identifier-length.MinimumLoopCounterNameLength
115 - key: readability-identifier-length.MinimumExceptionNameLength
117 - key: readability-qualified-auto.AddConstToQualified