forked from opentrack/opentrack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-tidy
82 lines (79 loc) · 2.92 KB
/
.clang-tidy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
Checks:
#-*,
*,
clang-analyzer-*,clang-diagnostic-*,
cppcoreguidelines-*,performance-*,bugprone-*,
readability-*,misc-*,hicpp-*,cert-*,modernize-*,
-clang-diagnostic-nonportable-include-path,
-clang-analyzer-deadcode.DeadStores,
-clang-analyze-core.CallAndMessage,
-cppcoreguidelines-special-member-functions,-hicpp-special-member-functions,
-hicpp-braces-around-statements,-readability-braces-around-statements,
-hicpp-use-equals-default -modernize-use-equals-default,
-hicpp-use-auto,
-hicpp-vararg,
-hicpp-member-init,
-cert-err58-cpp,
-readability-implicit-bool-conversion,
-readability-else-after-return,
-modernize-raw-string-literal,
-hicpp-no-array-decay,-cppcoreguidelines-pro-bounds-array-to-pointer-decay,
-cert-err34-c,
-hicpp-signed-bitwise,
-modernize-use-auto,-hicpp-use-auto,
-readability-named-parameter,
-cert-dcl54-cpp,
-hicpp-new-delete-operators,
-modernize-pass-by-value,
-cppcoreguidelines-pro-type-union-access,
-hicpp-use-equals-default,
-cppcoreguidelines-pro-bounds-pointer-arithmetic,
-cppcoreguidelines-pro-bounds-constant-array-index,
-cppcoreguidelines-pro-bounds-array-to-pointer-decay,
-cppcoreguidelines-pro-type-vararg,
-cppcoreguidelines-pro-type-cstyle-cast,
-cppcoreguidelines-pro-type-reinterpret-cast,
-cppcoreguidelines-owning-memory,
-cppcoreguidelines-pro-type-const-cast,
-hicpp-function-size,
-cppcoreguidelines-pro-type-static-cast-downcast,
-hicpp-use-override,
-hicpp-use-equals-delete,
-readability-static-accessed-through-instance,
-cert-flp30-c,
-modernize-redundant-void-arg,
-hicpp-explicit-conversions,
-readability-function-size,
-cppcoreguidelines-avoid-goto,
-modernize-use-using,
-cppcoreguidelines-c-copy-assignment-signature,
-hicpp-avoid-goto,
-readability-inconsistent-declaration-parameter-name,
-cppcoreguidelines-avoid-magic-numbers,
-readability-magic-numbers,
-modernize-loop-convert,
-modernize-use-nodiscard,
AnalyzeTemporaryDtors: true
#HeaderFilterRegex: '/dev/opentrack'
CheckOptions:
- key: cert-dcl59-cpp.HeaderFileExtensions
value: ',h,hpp'
- key: cppcoreguidelines-pro-type-member-init.IgnoreArrays
value: '1'
- key: readability-simplify-boolean-expr.ChainedConditionalAssignment
value: '1'
- key: readability-simplify-boolean-expr.ChainedConditionalReturn
value: '1'
- key: readability-function-size.BranchThreshold
value: '15'
- key: readability-function-size.LineThreshold
value: '120'
- key: readability-function-size.NestingThreshold
value: '6'
- key: readability-function-size.ParameterThreshold
value: '8'
- key: readability-function-size.StatementThreshold
value: '90'
- key: readability-function-size.VariableThreshold
value: '10'
# vim: ft=yaml