blob: 4e09243ee46e3833f48516c041c486586eba03fc [file] [log] [blame]
Ed Tanous3174e4d2020-10-07 11:41:22 -07001Checks: '
2-*,
Ed Tanousd63c72e2022-01-06 12:49:12 -08003boost-use-to-string,
Ed Tanousf23b7292020-10-15 09:41:17 -07004bugprone-argument-comment,
5bugprone-assert-side-effect,
6bugprone-bad-signal-to-kill-thread,
7bugprone-bool-pointer-implicit-conversion,
8bugprone-branch-clone,
9bugprone-copy-constructor-init,
10bugprone-dangling-handle,
11bugprone-dynamic-static-initializers,
12bugprone-fold-init-type,
13bugprone-forward-declaration-namespace,
14bugprone-forwarding-reference-overload,
Ed Tanous6de264c2022-01-06 12:47:59 -080015bugprone-implicit-widening-of-multiplication-result,
Ed Tanousf23b7292020-10-15 09:41:17 -070016bugprone-inaccurate-erase,
17bugprone-incorrect-roundings,
18bugprone-infinite-loop,
19bugprone-integer-division,
20bugprone-lambda-function-name,
21bugprone-macro-parentheses,
22bugprone-macro-repeated-side-effects,
23bugprone-misplaced-operator-in-strlen-in-alloc,
24bugprone-misplaced-pointer-arithmetic-in-alloc,
25bugprone-misplaced-widening-cast,
Ed Tanousf94c4ec2022-01-06 12:44:41 -080026bugprone-move-forwarding-reference,
Ed Tanousf23b7292020-10-15 09:41:17 -070027bugprone-multiple-statement-macro,
28bugprone-narrowing-conversions,
29bugprone-no-escape,
30bugprone-not-null-terminated-result,
31bugprone-parent-virtual-call,
32bugprone-posix-return,
Ed Tanousd63c72e2022-01-06 12:49:12 -080033bugprone-redundant-branch-condition,
Ed Tanousf23b7292020-10-15 09:41:17 -070034bugprone-reserved-identifier,
Ed Tanousd63c72e2022-01-06 12:49:12 -080035bugprone-signal-handler,
Ed Tanousf23b7292020-10-15 09:41:17 -070036bugprone-signed-char-misuse,
37bugprone-sizeof-container,
38bugprone-sizeof-expression,
39bugprone-spuriously-wake-up-functions,
40bugprone-string-constructor,
41bugprone-string-integer-assignment,
42bugprone-string-literal-with-embedded-nul,
43bugprone-suspicious-enum-usage,
Ed Tanousd63c72e2022-01-06 12:49:12 -080044bugprone-suspicious-include,
Ed Tanousf23b7292020-10-15 09:41:17 -070045bugprone-suspicious-memset-usage,
46bugprone-suspicious-missing-comma,
47bugprone-suspicious-semicolon,
48bugprone-suspicious-string-compare,
49bugprone-swapped-arguments,
50bugprone-terminating-continue,
51bugprone-throw-keyword-missing,
52bugprone-too-small-loop-variable,
53bugprone-undefined-memory-manipulation,
54bugprone-undelegated-constructor,
Ed Tanousd63c72e2022-01-06 12:49:12 -080055bugprone-unhandled-exception-at-new,
Ed Tanousf23b7292020-10-15 09:41:17 -070056bugprone-unhandled-self-assignment,
57bugprone-unused-raii,
58bugprone-unused-return-value,
59bugprone-use-after-move,
60bugprone-virtual-near-miss,
61cert-con36-c,
62cert-con54-cpp,
63cert-dcl03-c,
64cert-dcl16-c,
65cert-dcl21-cpp,
66cert-dcl37-c,
67cert-dcl50-cpp,
68cert-dcl51-cpp,
69cert-dcl54-cpp,
70cert-dcl58-cpp,
71cert-dcl59-cpp,
72cert-env33-c,
73cert-err09-cpp,
74cert-err34-c,
75cert-err52-cpp,
76cert-err60-cpp,
77cert-err61-cpp,
78cert-fio38-c,
79cert-flp30-c,
80cert-mem57-cpp,
81cert-msc30-c,
82cert-msc32-c,
83cert-msc50-cpp,
84cert-msc51-cpp,
85cert-oop11-cpp,
86cert-oop54-cpp,
87cert-oop57-cpp,
Ed Tanousd63c72e2022-01-06 12:49:12 -080088cert-oop58-cpp,
89cert-pos44-c,
90cert-pos47-c,
91cert-sig30-c,
92cert-str34-c,
Ed Tanous3174e4d2020-10-07 11:41:22 -070093clang-analyzer-apiModeling.StdCLibraryFunctions,
94clang-analyzer-apiModeling.TrustNonnull,
95clang-analyzer-apiModeling.google.GTest,
96clang-analyzer-apiModeling.llvm.CastValue,
97clang-analyzer-apiModeling.llvm.ReturnValue,
98clang-analyzer-core.CallAndMessage,
99clang-analyzer-core.CallAndMessageModeling,
100clang-analyzer-core.DivideZero,
101clang-analyzer-core.DynamicTypePropagation,
102clang-analyzer-core.NonNullParamChecker,
103clang-analyzer-core.NonnilStringConstants,
104clang-analyzer-core.NullDereference,
105clang-analyzer-core.StackAddrEscapeBase,
106clang-analyzer-core.StackAddressEscape,
107clang-analyzer-core.UndefinedBinaryOperatorResult,
108clang-analyzer-core.VLASize,
109clang-analyzer-core.builtin.BuiltinFunctions,
110clang-analyzer-core.builtin.NoReturnFunctions,
111clang-analyzer-core.uninitialized.ArraySubscript,
112clang-analyzer-core.uninitialized.Assign,
113clang-analyzer-core.uninitialized.Branch,
114clang-analyzer-core.uninitialized.CapturedBlockVariable,
115clang-analyzer-core.uninitialized.UndefReturn,
116clang-analyzer-cplusplus.InnerPointer,
117clang-analyzer-cplusplus.Move,
118clang-analyzer-cplusplus.NewDelete,
119clang-analyzer-cplusplus.NewDeleteLeaks,
120clang-analyzer-cplusplus.PlacementNew,
121clang-analyzer-cplusplus.PureVirtualCall,
122clang-analyzer-cplusplus.SelfAssignment,
123clang-analyzer-cplusplus.SmartPtrModeling,
124clang-analyzer-cplusplus.VirtualCallModeling,
125clang-analyzer-deadcode.DeadStores,
126clang-analyzer-fuchsia.HandleChecker,
127clang-analyzer-nullability.NullPassedToNonnull,
128clang-analyzer-nullability.NullReturnedFromNonnull,
129clang-analyzer-nullability.NullabilityBase,
130clang-analyzer-nullability.NullableDereferenced,
131clang-analyzer-nullability.NullablePassedToNonnull,
132clang-analyzer-nullability.NullableReturnedFromNonnull,
133clang-analyzer-optin.cplusplus.UninitializedObject,
134clang-analyzer-optin.cplusplus.VirtualCall,
135clang-analyzer-optin.mpi.MPI-Checker,
136clang-analyzer-optin.osx.OSObjectCStyleCast,
137clang-analyzer-optin.osx.cocoa.localizability.EmptyLocalizationContextChecker,
138clang-analyzer-optin.osx.cocoa.localizability.NonLocalizedStringChecker,
139clang-analyzer-optin.performance.GCDAntipattern,
140clang-analyzer-optin.performance.Padding,
141clang-analyzer-optin.portability.UnixAPI,
142clang-analyzer-osx.API,
143clang-analyzer-osx.MIG,
144clang-analyzer-osx.NSOrCFErrorDerefChecker,
145clang-analyzer-osx.NumberObjectConversion,
146clang-analyzer-osx.OSObjectRetainCount,
147clang-analyzer-osx.ObjCProperty,
148clang-analyzer-osx.SecKeychainAPI,
149clang-analyzer-osx.cocoa.AtSync,
150clang-analyzer-osx.cocoa.AutoreleaseWrite,
151clang-analyzer-osx.cocoa.ClassRelease,
152clang-analyzer-osx.cocoa.Dealloc,
153clang-analyzer-osx.cocoa.IncompatibleMethodTypes,
154clang-analyzer-osx.cocoa.Loops,
155clang-analyzer-osx.cocoa.MissingSuperCall,
156clang-analyzer-osx.cocoa.NSAutoreleasePool,
157clang-analyzer-osx.cocoa.NSError,
158clang-analyzer-osx.cocoa.NilArg,
159clang-analyzer-osx.cocoa.NonNilReturnValue,
160clang-analyzer-osx.cocoa.ObjCGenerics,
161clang-analyzer-osx.cocoa.RetainCount,
162clang-analyzer-osx.cocoa.RetainCountBase,
163clang-analyzer-osx.cocoa.RunLoopAutoreleaseLeak,
164clang-analyzer-osx.cocoa.SelfInit,
165clang-analyzer-osx.cocoa.SuperDealloc,
166clang-analyzer-osx.cocoa.UnusedIvars,
167clang-analyzer-osx.cocoa.VariadicMethodTypes,
168clang-analyzer-osx.coreFoundation.CFError,
169clang-analyzer-osx.coreFoundation.CFNumber,
170clang-analyzer-osx.coreFoundation.CFRetainRelease,
171clang-analyzer-osx.coreFoundation.containers.OutOfBounds,
172clang-analyzer-osx.coreFoundation.containers.PointerSizedValues,
173clang-analyzer-security.FloatLoopCounter,
174clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
175clang-analyzer-security.insecureAPI.SecuritySyntaxChecker,
176clang-analyzer-security.insecureAPI.UncheckedReturn,
177clang-analyzer-security.insecureAPI.bcmp,
178clang-analyzer-security.insecureAPI.bcopy,
179clang-analyzer-security.insecureAPI.bzero,
180clang-analyzer-security.insecureAPI.decodeValueOfObjCType,
181clang-analyzer-security.insecureAPI.getpw,
182clang-analyzer-security.insecureAPI.gets,
183clang-analyzer-security.insecureAPI.mkstemp,
184clang-analyzer-security.insecureAPI.mktemp,
185clang-analyzer-security.insecureAPI.rand,
186clang-analyzer-security.insecureAPI.strcpy,
187clang-analyzer-security.insecureAPI.vfork,
188clang-analyzer-unix.API,
189clang-analyzer-unix.DynamicMemoryModeling,
190clang-analyzer-unix.Malloc,
191clang-analyzer-unix.MallocSizeof,
192clang-analyzer-unix.MismatchedDeallocator,
193clang-analyzer-unix.Vfork,
194clang-analyzer-unix.cstring.BadSizeArg,
195clang-analyzer-unix.cstring.CStringModeling,
196clang-analyzer-unix.cstring.NullArg,
197clang-analyzer-valist.CopyToSelf,
198clang-analyzer-valist.Uninitialized,
199clang-analyzer-valist.Unterminated,
200clang-analyzer-valist.ValistBase,
201clang-analyzer-webkit.NoUncountedMemberChecker,
202clang-analyzer-webkit.RefCntblBaseVirtualDtor,
Ed Tanous9bc9dc02022-01-07 09:43:17 -0800203cppcoreguidelines-avoid-c-arrays,
204cppcoreguidelines-avoid-goto,
Ed Tanouscf9e4172022-12-21 09:30:16 -0800205cppcoreguidelines-avoid-non-const-global-variables,
Ed Tanous9bc9dc02022-01-07 09:43:17 -0800206cppcoreguidelines-c-copy-assignment-signature,
207cppcoreguidelines-explicit-virtual-functions,
Ed Tanous543f4402022-01-06 13:12:53 -0800208cppcoreguidelines-init-variables,
Ed Tanousd3a9e082022-01-07 09:30:41 -0800209cppcoreguidelines-interfaces-global-init,
Ed Tanous600d2392022-01-07 09:32:03 -0800210cppcoreguidelines-macro-usage,
Ed Tanous9bc9dc02022-01-07 09:43:17 -0800211cppcoreguidelines-narrowing-conversions,
Ed Tanousfcc5aa62022-01-07 09:40:43 -0800212cppcoreguidelines-no-malloc,
Ed Tanous9bc9dc02022-01-07 09:43:17 -0800213cppcoreguidelines-prefer-member-initializer,
Ed Tanous9b6ffca2022-01-07 09:33:43 -0800214cppcoreguidelines-pro-bounds-array-to-pointer-decay,
Ed Tanousca45aa32022-01-07 09:28:45 -0800215cppcoreguidelines-pro-bounds-pointer-arithmetic,
Ed Tanous4ecc6182022-01-07 09:36:26 -0800216cppcoreguidelines-pro-type-const-cast,
Ed Tanous4bac4a82022-01-07 09:37:55 -0800217cppcoreguidelines-pro-type-cstyle-cast,
Ed Tanousd3a9e082022-01-07 09:30:41 -0800218cppcoreguidelines-pro-type-member-init,
Ed Tanous46ff87b2022-01-07 09:25:51 -0800219cppcoreguidelines-pro-type-reinterpret-cast,
Ed Tanousadf3d0e2022-01-07 09:42:21 -0800220cppcoreguidelines-pro-type-static-cast-downcast,
Ed Tanous9bc9dc02022-01-07 09:43:17 -0800221cppcoreguidelines-pro-type-union-access,
Ed Tanous49d1eea2022-01-07 09:39:33 -0800222cppcoreguidelines-pro-type-vararg,
Ed Tanous9bc9dc02022-01-07 09:43:17 -0800223cppcoreguidelines-slicing,
Ed Tanousecd6a3a2022-01-07 09:18:40 -0800224cppcoreguidelines-special-member-functions,
Ed Tanous4e23a442022-06-06 09:57:26 -0700225google-explicit-constructor,
Ed Tanousf23b7292020-10-15 09:41:17 -0700226misc-misplaced-const,
Ed Tanousb00dcc22021-02-23 12:52:50 -0800227#misc-no-recursion,
Ed Tanousf23b7292020-10-15 09:41:17 -0700228misc-redundant-expression,
229misc-static-assert,
230misc-throw-by-value-catch-by-reference,
231misc-unconventional-assign-operator,
232misc-uniqueptr-reset-release,
233misc-unused-using-decls,
Ed Tanous3174e4d2020-10-07 11:41:22 -0700234modernize-avoid-bind,
235modernize-deprecated-headers,
236modernize-deprecated-ios-base-aliases,
237modernize-loop-convert,
238modernize-make-shared,
239modernize-make-unique,
240modernize-raw-string-literal,
241modernize-replace-auto-ptr,
242modernize-replace-random-shuffle,
243modernize-return-braced-init-list,
244modernize-shrink-to-fit,
245modernize-unary-static-assert,
246modernize-use-bool-literals,
247modernize-use-default-member-init,
248modernize-use-emplace,
249modernize-use-equals-default,
250modernize-use-equals-delete,
251modernize-use-noexcept,
252modernize-use-nullptr,
253modernize-use-override,
254modernize-use-transparent-functors,
255modernize-use-uncaught-exceptions,
256modernize-use-using,
Ed Tanousf23b7292020-10-15 09:41:17 -0700257performance-faster-string-find,
Ed Tanous3174e4d2020-10-07 11:41:22 -0700258performance-for-range-copy,
259performance-implicit-conversion-in-loop,
260performance-inefficient-algorithm,
Ed Tanousf23b7292020-10-15 09:41:17 -0700261performance-inefficient-string-concatenation,
Ed Tanous3174e4d2020-10-07 11:41:22 -0700262performance-inefficient-vector-operation,
Ed Tanousf23b7292020-10-15 09:41:17 -0700263performance-move-const-arg,
Ed Tanous3174e4d2020-10-07 11:41:22 -0700264performance-move-constructor-init,
265performance-no-automatic-move,
Ed Tanous31873b32022-01-25 16:27:50 -0800266performance-no-int-to-ptr,
Ed Tanousf23b7292020-10-15 09:41:17 -0700267performance-noexcept-move-constructor,
Ed Tanous3174e4d2020-10-07 11:41:22 -0700268performance-trivially-destructible,
269performance-type-promotion-in-math-fn,
270performance-unnecessary-copy-initialization,
Ed Tanousf23b7292020-10-15 09:41:17 -0700271performance-unnecessary-value-param,
Ed Tanous9eb808c2022-01-25 10:19:23 -0800272readability-avoid-const-params-in-decls,
Ed Tanous3174e4d2020-10-07 11:41:22 -0700273readability-braces-around-statements,
274readability-const-return-type,
Ed Tanous26f69762022-01-25 09:49:11 -0800275readability-container-size-empty,
Ed Tanous56d23962022-02-14 20:42:02 -0800276readability-convert-member-functions-to-static,
Ed Tanous3174e4d2020-10-07 11:41:22 -0700277readability-delete-null-pointer,
278readability-deleted-default,
Ed Tanousf23b7292020-10-15 09:41:17 -0700279readability-else-after-return,
Ed Tanous55f79e62022-01-25 11:26:16 -0800280readability-function-size,
281readability-identifier-naming,
Ed Tanouse662eae2022-01-25 10:39:19 -0800282readability-implicit-bool-conversion,
Ed Tanous55f79e62022-01-25 11:26:16 -0800283readability-inconsistent-declaration-parameter-name,
284readability-isolate-declaration,
Ed Tanous56d23962022-02-14 20:42:02 -0800285readability-make-member-function-const,
Ed Tanous55f79e62022-01-25 11:26:16 -0800286readability-misleading-indentation,
287readability-misplaced-array-index,
Ed Tanous104f09c2022-01-25 09:56:04 -0800288readability-named-parameter,
Ed Tanous56d23962022-02-14 20:42:02 -0800289readability-non-const-parameter,
Ed Tanous55f79e62022-01-25 11:26:16 -0800290readability-qualified-auto,
291readability-redundant-access-specifiers,
Ed Tanousdcf2ebc2022-01-25 10:07:45 -0800292readability-redundant-control-flow,
Ed Tanouse05aec52022-01-25 10:28:56 -0800293readability-redundant-declaration,
294readability-redundant-function-ptr-dereference,
295readability-redundant-member-init,
296readability-redundant-preprocessor,
297readability-redundant-smartptr-get,
298readability-redundant-string-cstr,
299readability-redundant-string-init,
Ed Tanous55f79e62022-01-25 11:26:16 -0800300readability-simplify-boolean-expr,
301readability-simplify-subscript-expr,
Ed Tanous71d5d8d2022-01-25 11:04:33 -0800302readability-static-accessed-through-instance,
Ed Tanous55f79e62022-01-25 11:26:16 -0800303readability-static-definition-in-anonymous-namespace,
304readability-string-compare,
305readability-suspicious-call-argument,
306readability-uniqueptr-delete-release,
Ed Tanousdbb59d42022-01-25 11:09:55 -0800307readability-uppercase-literal-suffix'
Ed Tanous3174e4d2020-10-07 11:41:22 -0700308
309WarningsAsErrors: '*'
Ed Tanousb0bb6f22020-09-28 16:43:15 -0700310HeaderFilterRegex: '.*'
311CheckOptions:
312 - { key: readability-identifier-naming.ClassCase, value: CamelCase }
313 - { key: readability-identifier-naming.VariableCase, value: camelBack }
314 - { key: readability-identifier-naming.FunctionCase, value: camelBack }
Ed Tanous81ce6092020-12-17 16:54:55 +0000315 - { key: readability-identifier-naming.ParameterCase, value: camelBack }
Ed Tanousb0bb6f22020-09-28 16:43:15 -0700316 - { key: readability-identifier-naming.NamespaceCase, value: lower_case }
317 - { key: readability-identifier-naming.StructCase, value: CamelCase }
Ed Tanous0ec8b832022-03-14 14:56:47 -0700318 - { key: cppcoreguidelines-macro-usage.AllowedRegexp, value: DEBUG*|NLOHMANN_JSON_SERIALIZE_ENUM }
Ed Tanousd9f466b2023-03-06 15:04:25 -0800319 - { key: performance-unnecessary-value-param.AllowedTypes, value: ((segments_view)|(url_view)) }