git2wrap

C++20 wrapper for libgit2
git clone git://git.dimitrijedobrota.com/git2wrap.git
Log | Files | Refs | README | LICENSE | HACKING | CONTRIBUTING | CODE_OF_CONDUCT | BUILDING

.clang-tidy (7012B)


0 ---
1 # Enable ALL the things! Except not really
2 # misc-non-private-member-variables-in-classes: the options don't do anything
3 # modernize-use-nodiscard: too aggressive, attribute is situationally useful
4 Checks: "*,\
5 -altera-*,\
6 -boost*,\
7 -cppcoreguidelines-avoid-do-while,\
8 -cppcoreguidelines-pro-bounds-constant-array-index,\
9 -fuchsia-*,\
10 -google-readability-todo,\
11 -llvm-header-guard,\
12 -llvm-include-order,\
13 -llvmlibc-*,\
14 -misc-include-cleaner,\
15 -misc-non-private-member-variables-in-classes,\
16 -misc-no-recursion,\
17 -modernize-use-trailing-return-type,\
18 -readability-suspicious-call-argument,\
19 -*-ranges,\
20 "
21 WarningsAsErrors: ''
22 CheckOptions:
23 - key: 'bugprone-argument-comment.StrictMode'
24 value: 'true'
25 # Prefer using enum classes with 2 values for parameters instead of bools
26 - key: 'bugprone-argument-comment.CommentBoolLiterals'
27 value: 'true'
28 - key: 'bugprone-misplaced-widening-cast.CheckImplicitCasts'
29 value: 'true'
30 - key: 'bugprone-sizeof-expression.WarnOnSizeOfIntegerExpression'
31 value: 'true'
32 - key: 'bugprone-suspicious-string-compare.WarnOnLogicalNotComparison'
33 value: 'true'
34 - key: 'readability-simplify-boolean-expr.ChainedConditionalReturn'
35 value: 'true'
36 - key: 'readability-simplify-boolean-expr.ChainedConditionalAssignment'
37 value: 'true'
38 - key: 'readability-uniqueptr-delete-release.PreferResetCall'
39 value: 'true'
40 - key: 'cppcoreguidelines-init-variables.MathHeader'
41 value: '<cmath>'
42 - key: 'cppcoreguidelines-narrowing-conversions.PedanticMode'
43 value: 'true'
44 - key: 'readability-else-after-return.WarnOnUnfixable'
45 value: 'true'
46 - key: 'readability-else-after-return.WarnOnConditionVariables'
47 value: 'true'
48 - key: 'readability-inconsistent-declaration-parameter-name.Strict'
49 value: 'true'
50 - key: 'readability-qualified-auto.AddConstToQualified'
51 value: 'true'
52 - key: 'readability-redundant-access-specifiers.CheckFirstDeclaration'
53 value: 'true'
54 # These seem to be the most common identifier styles
55 - key: 'readability-identifier-naming.AbstractClassCase'
56 value: 'lower_case'
57 - key: 'readability-identifier-naming.ClassCase'
58 value: 'lower_case'
59 - key: 'readability-identifier-naming.ClassConstantCase'
60 value: 'lower_case'
61 - key: 'readability-identifier-naming.ClassMemberCase'
62 value: 'lower_case'
63 - key: 'readability-identifier-naming.ClassMethodCase'
64 value: 'lower_case'
65 - key: 'readability-identifier-naming.ConstantCase'
66 value: 'lower_case'
67 - key: 'readability-identifier-naming.ConstantMemberCase'
68 value: 'lower_case'
69 - key: 'readability-identifier-naming.ConstantParameterCase'
70 value: 'lower_case'
71 - key: 'readability-identifier-naming.ConstantPointerParameterCase'
72 value: 'lower_case'
73 - key: 'readability-identifier-naming.ConstexprFunctionCase'
74 value: 'lower_case'
75 - key: 'readability-identifier-naming.ConstexprMethodCase'
76 value: 'lower_case'
77 - key: 'readability-identifier-naming.ConstexprVariableCase'
78 value: 'lower_case'
79 - key: 'readability-identifier-naming.EnumCase'
80 value: 'lower_case'
81 - key: 'readability-identifier-naming.EnumConstantCase'
82 value: 'lower_case'
83 - key: 'readability-identifier-naming.FunctionCase'
84 value: 'lower_case'
85 - key: 'readability-identifier-naming.GlobalConstantCase'
86 value: 'lower_case'
87 - key: 'readability-identifier-naming.GlobalConstantPointerCase'
88 value: 'lower_case'
89 - key: 'readability-identifier-naming.GlobalFunctionCase'
90 value: 'lower_case'
91 - key: 'readability-identifier-naming.GlobalPointerCase'
92 value: 'lower_case'
93 - key: 'readability-identifier-naming.GlobalVariableCase'
94 value: 'lower_case'
95 - key: 'readability-identifier-naming.InlineNamespaceCase'
96 value: 'lower_case'
97 - key: 'readability-identifier-naming.LocalConstantCase'
98 value: 'lower_case'
99 - key: 'readability-identifier-naming.LocalConstantPointerCase'
100 value: 'lower_case'
101 - key: 'readability-identifier-naming.LocalPointerCase'
102 value: 'lower_case'
103 - key: 'readability-identifier-naming.LocalVariableCase'
104 value: 'lower_case'
105 - key: 'readability-identifier-naming.MacroDefinitionCase'
106 value: 'UPPER_CASE'
107 - key: 'readability-identifier-naming.MemberCase'
108 value: 'lower_case'
109 - key: 'readability-identifier-naming.MethodCase'
110 value: 'lower_case'
111 - key: 'readability-identifier-naming.NamespaceCase'
112 value: 'lower_case'
113 - key: 'readability-identifier-naming.ParameterCase'
114 value: 'lower_case'
115 - key: 'readability-identifier-naming.ParameterPackCase'
116 value: 'lower_case'
117 - key: 'readability-identifier-naming.PointerParameterCase'
118 value: 'lower_case'
119 - key: 'readability-identifier-naming.PrivateMemberCase'
120 value: 'lower_case'
121 - key: 'readability-identifier-naming.PrivateMemberPrefix'
122 value: 'm_'
123 - key: 'readability-identifier-naming.PrivateMethodCase'
124 value: 'lower_case'
125 - key: 'readability-identifier-naming.ProtectedMemberCase'
126 value: 'lower_case'
127 - key: 'readability-identifier-naming.ProtectedMemberPrefix'
128 value: 'm_'
129 - key: 'readability-identifier-naming.ProtectedMethodCase'
130 value: 'lower_case'
131 - key: 'readability-identifier-naming.PublicMemberCase'
132 value: 'lower_case'
133 - key: 'readability-identifier-naming.PublicMethodCase'
134 value: 'lower_case'
135 - key: 'readability-identifier-naming.ScopedEnumConstantCase'
136 value: 'lower_case'
137 - key: 'readability-identifier-naming.StaticConstantCase'
138 value: 'lower_case'
139 - key: 'readability-identifier-naming.StaticVariableCase'
140 value: 'lower_case'
141 - key: 'readability-identifier-naming.StructCase'
142 value: 'lower_case'
143 - key: 'readability-identifier-naming.TemplateParameterCase'
144 value: 'CamelCase'
145 - key: 'readability-identifier-naming.TemplateTemplateParameterCase'
146 value: 'CamelCase'
147 - key: 'readability-identifier-naming.TypeAliasCase'
148 value: 'lower_case'
149 - key: 'readability-identifier-naming.TypeAliasIgnoredRegexp'
150 value: 'N'
151 - key: 'readability-identifier-naming.TypedefCase'
152 value: 'lower_case'
153 - key: 'readability-identifier-naming.TypeTemplateParameterCase'
154 value: 'CamelCase'
155 - key: 'readability-identifier-naming.UnionCase'
156 value: 'lower_case'
157 - key: 'readability-identifier-naming.ValueTemplateParameterCase'
158 value: 'lower_case'
159 - key: 'readability-identifier-naming.VariableCase'
160 value: 'lower_case'
161 - key: 'readability-identifier-naming.VirtualMethodCase'
162 value: 'lower_case'
163 - key: 'readability-identifier-length.IgnoredVariableNames'
164 value: "^[abcdxyznm]$"
165 - key: 'readability-identifier-length.IgnoredParameterNames'
166 value: "^[abcdxyznm]$"
167 - key: 'google-runtime-int.UnsignedTypePrefix'
168 value: "u"
169 - key: 'google-runtime-int.SignedTypePrefix'
170 value: "i"
171 - key: 'cppcoreguidelines-missing-std-forward.ForwardFunction'
172 value: "::based::forward"
173 - key: 'cppcoreguidelines-rvalue-reference-param-not-moved.MoveFunction'
174 value: "::based::move"
175 ...