1
1
Checks :
2
2
' -*,
3
3
modernize-*,
4
+ -modernize-macro-to-enum,
4
5
cert-*,
5
6
bugprone-*,
6
7
-bugprone-easily-swappable-parameters,
8
+ -bugprone-assignment-in-if-condition,
7
9
clang-analyzer-*,
8
10
-clang-analyzer-deadcode.DeadStores,
9
11
misc-*,
10
12
-misc-no-recursion,
11
13
-misc-unused-parameters,
14
+ -misc-include-cleaner,
12
15
readability-non-const-parameter,
13
16
readability-inconsistent-declaration-parameter-name,
14
17
readability-redundant-control-flow,
15
18
readability-duplicate-include,
16
19
readability-avoid-const-params-in-decls,
17
20
readability-function-cognitive-complexity'
18
21
22
+ # Setting cognitive complexity to 100.
23
+ # This is quite high, but should be seen as a starting point
24
+ # to resolve other complex functions over time to get back to the default
25
+ # value of 25
26
+ CheckOptions :
27
+ - key : readability-function-cognitive-complexity.Threshold
28
+ value : 100
29
+
30
+
19
31
# Other available checks:
20
32
# clang-analyzer-*, performance-*, readability-*, misc-*
21
33
@@ -29,10 +41,17 @@ Checks:
29
41
# Recursion is useful in our code, so this check is not applicable.
30
42
# - misc-unused-parameters:
31
43
# Too many false positives.
44
+ # - misc-include-cleaner
45
+ # We have a lot of includes wrapping others to work around system differences. This creates too much noise
46
+ # when it is enabled.
47
+ # - modernize-macro-to-enum
48
+ # This is a great modernization, however it does not make sense everywhere.
49
+ # There are plenty of places to use this, however since we do not want to migrate to C11 as a requirement
50
+ # yet, this is not something we want to enable due to noise since anonymous enums are a C11 standard and not earlier.
51
+ # if/when we require C11, we should enable this
32
52
# - readability-*:
33
53
# Currently generates too many warnings. Manually adding rules until we can address these issues later.
34
54
35
55
WarningsAsErrors : ' '
36
56
HeaderFilterRegex : ' .*'
37
- AnalyzeTemporaryDtors : false
38
57
FormatStyle : ' file'
0 commit comments