Skip to content

Commit 2bc704c

Browse files
committed
chore: add misc-include-cleaner to the clang-tidy settings
1 parent 899cd57 commit 2bc704c

File tree

1 file changed

+75
-69
lines changed

1 file changed

+75
-69
lines changed

.clang-tidy

Lines changed: 75 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,137 +1,137 @@
11
# taken from https://github.com/cpp-linter/cpp-linter-action/blob/main/demo/.clang-tidy
22
---
3-
Checks: "clang-diagnostic-*,clang-analyzer-*,bugprone-*,misc-*,performance-*,readability-*,portability-*,modernize-*,cppcoreguidelines-*,google-*,llvm-*,cert-*,-modernize-use-trailing-return-type,-bugprone-argument-comment,-misc-include-cleaner,-cppcoreguidelines-avoid-magic-numbers,-readability-magic-numbers,-readability-avoid-nested-conditional-operator,-llvm-namespace-comment,-llvm-header-guard,-google-build-explicit-make-pair"
4-
WarningsAsErrors: ""
5-
HeaderFilterRegex: "oopetris/src/.*"
6-
FormatStyle: "file"
3+
Checks: 'clang-diagnostic-*,clang-analyzer-*,bugprone-*,misc-*,performance-*,readability-*,portability-*,modernize-*,cppcoreguidelines-*,google-*,llvm-*,cert-*,-modernize-use-trailing-return-type,-bugprone-argument-comment,-cppcoreguidelines-avoid-magic-numbers,-readability-magic-numbers,-readability-avoid-nested-conditional-operator,-llvm-namespace-comment,-llvm-header-guard,-google-build-explicit-make-pair'
4+
WarningsAsErrors: ''
5+
HeaderFilterRegex: 'oopetris/src/.*'
6+
FormatStyle: 'file'
77
CheckOptions:
88
## NAMING CONVENTION SECTION
99
- key: readability-identifier-naming.AbstractClassCase
10-
value: "CamelCase"
10+
value: 'CamelCase'
1111
- key: readability-identifier-naming.AggressiveDependentMemberLookup
1212
value: true
1313
- key: readability-identifier-naming.CheckAnonFieldInParent
1414
value: false
1515
- key: readability-identifier-naming.ClassCase
16-
value: "CamelCase"
16+
value: 'CamelCase'
1717
- key: readability-identifier-naming.ClassConstantCase
18-
value: "lower_case"
18+
value: 'lower_case'
1919
- key: readability-identifier-naming.ClassConstantPrefix
20-
value: "c_"
20+
value: 'c_'
2121
- key: readability-identifier-naming.ClassMemberCase
22-
value: "lower_case"
22+
value: 'lower_case'
2323
- key: readability-identifier-naming.ClassMemberPrefix
24-
value: "m_"
24+
value: 'm_'
2525
- key: readability-identifier-naming.ClassMethodCase
26-
value: "lower_case"
26+
value: 'lower_case'
2727
- key: readability-identifier-naming.ConceptCase
28-
value: "CamelCase"
28+
value: 'CamelCase'
2929
- key: readability-identifier-naming.ConstantCase
30-
value: "lower_case"
30+
value: 'lower_case'
3131
- key: readability-identifier-naming.ConstantMemberCase
32-
value: "lower_case"
32+
value: 'lower_case'
3333
- key: readability-identifier-naming.ConstantParameterCase
34-
value: "lower_case"
34+
value: 'lower_case'
3535
- key: readability-identifier-naming.ConstantPointerParameterCase
36-
value: "lower_case"
36+
value: 'lower_case'
3737
- key: readability-identifier-naming.ConstexprFunctionCase
38-
value: "lower_case"
38+
value: 'lower_case'
3939
- key: readability-identifier-naming.ConstexprMethodCase
40-
value: "lower_case"
40+
value: 'lower_case'
4141
- key: readability-identifier-naming.ConstexprVariableCase
42-
value: "lower_case"
42+
value: 'lower_case'
4343
- key: readability-identifier-naming.EnumCase
44-
value: "CamelCase"
44+
value: 'CamelCase'
4545
- key: readability-identifier-naming.EnumConstantCase
46-
value: "CamelCase"
46+
value: 'CamelCase'
4747
- key: readability-identifier-naming.FunctionCase
48-
value: "lower_case"
48+
value: 'lower_case'
4949
- key: readability-identifier-naming.GlobalConstantCase
50-
value: "lower_case"
50+
value: 'lower_case'
5151
- key: readability-identifier-naming.GlobalConstantPointerCase
52-
value: "lower_case"
52+
value: 'lower_case'
5353
- key: readability-identifier-naming.GlobalFunctionCase
54-
value: "lower_case"
54+
value: 'lower_case'
5555
- key: readability-identifier-naming.GlobalFunctionIgnoredRegexp
56-
value: "(PrintTo)" ## for gtest
56+
value: '(PrintTo)' ## for gtest
5757
- key: readability-identifier-naming.GlobalPointerCase
58-
value: "lower_case"
58+
value: 'lower_case'
5959
- key: readability-identifier-naming.GlobalVariableCase
60-
value: "lower_case"
60+
value: 'lower_case'
6161
- key: readability-identifier-naming.GlobalVariablePrefix
62-
value: "g_"
62+
value: 'g_'
6363
- key: readability-identifier-naming.LocalConstantCase
64-
value: "lower_case"
64+
value: 'lower_case'
6565
- key: readability-identifier-naming.LocalConstantPointerCase
66-
value: "lower_case"
66+
value: 'lower_case'
6767
- key: readability-identifier-naming.LocalPointerCase
68-
value: "lower_case"
68+
value: 'lower_case'
6969
- key: readability-identifier-naming.LocalVariableCase
70-
value: "lower_case"
70+
value: 'lower_case'
7171
- key: readability-identifier-naming.MacroDefinitionCase
72-
value: "UPPER_CASE"
72+
value: 'UPPER_CASE'
7373
- key: readability-identifier-naming.MemberCase
74-
value: "lower_case"
74+
value: 'lower_case'
7575
- key: readability-identifier-naming.MemberPrefix
76-
value: "m_"
76+
value: 'm_'
7777
- key: readability-identifier-naming.MethodCase
78-
value: "lower_case"
78+
value: 'lower_case'
7979
- key: readability-identifier-naming.NamespaceCase
80-
value: "lower_case"
80+
value: 'lower_case'
8181
- key: readability-identifier-naming.ParameterCase
82-
value: "lower_case"
82+
value: 'lower_case'
8383
- key: readability-identifier-naming.ParameterPackCase
84-
value: "lower_case"
84+
value: 'lower_case'
8585
- key: readability-identifier-naming.PointerParameterCase
86-
value: "lower_case"
86+
value: 'lower_case'
8787
- key: readability-identifier-naming.PrivateMemberCase
88-
value: "lower_case"
88+
value: 'lower_case'
8989
- key: readability-identifier-naming.PrivateMemberPrefix
90-
value: "m_"
90+
value: 'm_'
9191
- key: readability-identifier-naming.PrivateMethodCase
92-
value: "lower_case"
92+
value: 'lower_case'
9393
- key: readability-identifier-naming.ProtectedMemberCase
94-
value: "lower_case"
94+
value: 'lower_case'
9595
- key: readability-identifier-naming.ProtectedMemberPrefix
96-
value: "m_"
96+
value: 'm_'
9797
- key: readability-identifier-naming.ProtectedMethodCase
98-
value: "lower_case"
98+
value: 'lower_case'
9999
- key: readability-identifier-naming.PublicMemberCase
100-
value: "lower_case"
100+
value: 'lower_case'
101101
- key: readability-identifier-naming.PublicMemberPrefix
102-
value: "" # NO PREFIX
102+
value: '' # NO PREFIX
103103
- key: readability-identifier-naming.PublicMethodCase
104-
value: "lower_case"
104+
value: 'lower_case'
105105
- key: readability-identifier-naming.ScopedEnumConstantCase
106-
value: "CamelCase"
106+
value: 'CamelCase'
107107
- key: readability-identifier-naming.StaticConstantCase
108-
value: "lower_case"
108+
value: 'lower_case'
109109
- key: readability-identifier-naming.StaticConstantPrefix
110-
value: "s_"
110+
value: 's_'
111111
- key: readability-identifier-naming.StaticVariableCase
112-
value: "lower_case"
112+
value: 'lower_case'
113113
- key: readability-identifier-naming.StaticVariablePrefix
114-
value: "s_"
114+
value: 's_'
115115
- key: readability-identifier-naming.StructCase
116-
value: "CamelCase"
116+
value: 'CamelCase'
117117
- key: readability-identifier-naming.TemplateParameterCase
118-
value: "CamelCase"
118+
value: 'CamelCase'
119119
- key: readability-identifier-naming.TemplateTemplateParameterCase
120-
value: "CamelCase"
120+
value: 'CamelCase'
121121
- key: readability-identifier-naming.TypeAliasCase
122-
value: "CamelCase"
122+
value: 'CamelCase'
123123
- key: readability-identifier-naming.TypedefCase
124-
value: "CamelCase"
124+
value: 'CamelCase'
125125
- key: readability-identifier-naming.TypeTemplateParameterCase
126-
value: "CamelCase"
126+
value: 'CamelCase'
127127
- key: readability-identifier-naming.UnionCase
128-
value: "CamelCase"
128+
value: 'CamelCase'
129129
- key: readability-identifier-naming.ValueTemplateParameterCase
130-
value: "CamelCase"
130+
value: 'CamelCase'
131131
- key: readability-identifier-naming.VariableCase
132-
value: "lower_case"
132+
value: 'lower_case'
133133
- key: readability-identifier-naming.VirtualMethodCase
134-
value: "lower_case"
134+
value: 'lower_case'
135135

136136
# some needed settings, that are non default
137137
- key: bugprone-misplaced-widening-cast.CheckImplicitCasts
@@ -153,16 +153,22 @@ CheckOptions:
153153

154154
## special things, that have special values
155155
- key: readability-identifier-length.IgnoredVariableNames
156-
value: ""
156+
value: ''
157157
- key: readability-identifier-length.IgnoredParameterNames
158-
value: "^(os)$" ## std::ostream
158+
value: '^(os)$' ## std::ostream
159159
- key: readability-identifier-length.IgnoredExceptionVariableNames
160-
value: ""
160+
value: ''
161161
- key: readability-identifier-length.MinimumLoopCounterNameLength
162162
value: 1
163163
- key: readability-identifier-length.MinimumExceptionNameLength
164164
value: 5
165165
- key: readability-function-cognitive-complexity.Threshold
166166
value: 50
167167
- key: bugprone-assert-side-effect.AssertMacros
168-
value: "assert"
168+
value: 'assert'
169+
170+
##
171+
- key: misc-include-cleaner.IgnoreHeaders
172+
value: ''
173+
- key: misc-include-cleaner.DeduplicateFindings
174+
value: true

0 commit comments

Comments
 (0)