QCodeEditor: Update to current cpeditor/QCodeEditor fork, commit ed1196a
[smuview.git] / .clang-tidy
blob329abd00eb7b6f1538fe030ce609308d8876e81c
1 # Disabled checks:
2 # - bugprone-easily-swappable-parameters
3 #     Not needed
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!
13 # - misc-no-recursion
14 #     We do use recursions
15 # - performance-unnecessary-value-param
16 #     TODO: !
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
20 #     no sense:
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.
33 #         public Q_SLOTS:
34 #         public:
35 # - readability-function-cognitive-complexity
36 #     TODO: Enable!
37 # - readability-use-anyofallof
38 #     Foreach loops are ok for now
40 # TODO:
41 # - google-*,
42 #   -google-readability-braces-around-statements,
43 #   -google-readability-todo,
44 # - modernize-*,
45 #   -modernize-raw-string-literal
47 Checks: >-
48   bugprone-*,
49   -bugprone-easily-swappable-parameters,
50   -bugprone-suspicious-include,
51   clang-diagnostic-*,
52   clang-analyzer-*,
53   google-explicit-constructor,
54   misc-*,
55   -misc-definitions-in-headers,
56   -misc-non-private-member-variables-in-classes,
57   -misc-static-assert,
58   -misc-no-recursion,
59   performance-*,
60   -performance-unnecessary-value-param,
61   readability-*,
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,
71 WarningsAsErrors:      ''
72 HeaderFilterRegex:     '^src/.*$'
73 AnalyzeTemporaryDtors: false
74 FormatStyle:           none
75 User:                  frank
76 CheckOptions:
77   - key:             cert-dcl16-c.NewSuffixes
78     value:           'L;LL;LU;LLU'
79   - key:             cppcoreguidelines-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic
80     value:           '1'
81   - key:             google-readability-braces-around-statements.ShortStatementLines
82     value:           '1'
83   - key:             google-readability-function-size.StatementThreshold
84     value:           '800'
85   - key:             google-readability-namespace-comments.ShortNamespaceLines
86     value:           '10'
87   - key:             google-readability-namespace-comments.SpacesBeforeComments
88     value:           '2'
89   - key:             modernize-loop-convert.MaxCopySize
90     value:           '16'
91   - key:             modernize-loop-convert.MinConfidence
92     value:           reasonable
93   - key:             modernize-loop-convert.NamingStyle
94     value:           CamelCase
95   - key:             modernize-pass-by-value.IncludeStyle
96     value:           llvm
97   - key:             modernize-replace-auto-ptr.IncludeStyle
98     value:           llvm
99   - key:             modernize-use-nullptr.NullMacros
100     value:           'NULL'
101   - key:             readability-braces-around-statements.ShortStatementLines
102     value:           '3'
103   - key:             readability-implicit-bool-conversion.AllowPointerConditions
104     value:           '1'
105   - key:             readability-implicit-bool-conversion.AllowIntegerConditions
106     value:           '1'
107   - key:             readability-redundant-member-init.IgnoreBaseInCopyConstructors
108     value:           '1'
109   - key:             readability-identifier-length.MinimumVariableNameLength
110     value:           '2'
111   - key:             readability-identifier-length.MinimumParameterNameLength
112     value:           '2'
113   - key:             readability-identifier-length.MinimumLoopCounterNameLength
114     value:           '1'
115   - key:             readability-identifier-length.MinimumExceptionNameLength
116     value:           '1'
117   - key:             readability-qualified-auto.AddConstToQualified
118     value:           '1'