blob: 71e80a4eed4ea6989e3b77d4046026fc49690b11 [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,
Ed Tanousd5736ef2023-07-06 10:37:23 -07006bugprone-assignment-in-if-condition,
Ed Tanousf23b7292020-10-15 09:41:17 -07007bugprone-bad-signal-to-kill-thread,
8bugprone-bool-pointer-implicit-conversion,
9bugprone-branch-clone,
10bugprone-copy-constructor-init,
11bugprone-dangling-handle,
12bugprone-dynamic-static-initializers,
Ed Tanousd5736ef2023-07-06 10:37:23 -070013bugprone-exception-escape,
Ed Tanousf23b7292020-10-15 09:41:17 -070014bugprone-fold-init-type,
15bugprone-forward-declaration-namespace,
16bugprone-forwarding-reference-overload,
Ed Tanous6de264c2022-01-06 12:47:59 -080017bugprone-implicit-widening-of-multiplication-result,
Ed Tanousf23b7292020-10-15 09:41:17 -070018bugprone-inaccurate-erase,
19bugprone-incorrect-roundings,
20bugprone-infinite-loop,
21bugprone-integer-division,
22bugprone-lambda-function-name,
23bugprone-macro-parentheses,
24bugprone-macro-repeated-side-effects,
25bugprone-misplaced-operator-in-strlen-in-alloc,
26bugprone-misplaced-pointer-arithmetic-in-alloc,
27bugprone-misplaced-widening-cast,
Ed Tanousf94c4ec2022-01-06 12:44:41 -080028bugprone-move-forwarding-reference,
Ed Tanousf23b7292020-10-15 09:41:17 -070029bugprone-multiple-statement-macro,
30bugprone-narrowing-conversions,
31bugprone-no-escape,
32bugprone-not-null-terminated-result,
33bugprone-parent-virtual-call,
34bugprone-posix-return,
Ed Tanousd63c72e2022-01-06 12:49:12 -080035bugprone-redundant-branch-condition,
Ed Tanousf23b7292020-10-15 09:41:17 -070036bugprone-reserved-identifier,
Ed Tanousd5736ef2023-07-06 10:37:23 -070037bugprone-shared-ptr-array-mismatch,
Ed Tanousd63c72e2022-01-06 12:49:12 -080038bugprone-signal-handler,
Ed Tanousf23b7292020-10-15 09:41:17 -070039bugprone-signed-char-misuse,
40bugprone-sizeof-container,
41bugprone-sizeof-expression,
42bugprone-spuriously-wake-up-functions,
Ed Tanousd5736ef2023-07-06 10:37:23 -070043bugprone-standalone-empty,
Ed Tanousf23b7292020-10-15 09:41:17 -070044bugprone-string-constructor,
45bugprone-string-integer-assignment,
46bugprone-string-literal-with-embedded-nul,
Ed Tanousd5736ef2023-07-06 10:37:23 -070047bugprone-stringview-nullptr,
Ed Tanousf23b7292020-10-15 09:41:17 -070048bugprone-suspicious-enum-usage,
Ed Tanousd63c72e2022-01-06 12:49:12 -080049bugprone-suspicious-include,
Ed Tanousd5736ef2023-07-06 10:37:23 -070050bugprone-suspicious-memory-comparison,
Ed Tanousf23b7292020-10-15 09:41:17 -070051bugprone-suspicious-memset-usage,
52bugprone-suspicious-missing-comma,
Ed Tanousd5736ef2023-07-06 10:37:23 -070053bugprone-suspicious-realloc-usage,
Ed Tanousf23b7292020-10-15 09:41:17 -070054bugprone-suspicious-semicolon,
55bugprone-suspicious-string-compare,
56bugprone-swapped-arguments,
57bugprone-terminating-continue,
58bugprone-throw-keyword-missing,
59bugprone-too-small-loop-variable,
60bugprone-undefined-memory-manipulation,
61bugprone-undelegated-constructor,
Ed Tanousd63c72e2022-01-06 12:49:12 -080062bugprone-unhandled-exception-at-new,
Ed Tanousf23b7292020-10-15 09:41:17 -070063bugprone-unhandled-self-assignment,
64bugprone-unused-raii,
65bugprone-unused-return-value,
66bugprone-use-after-move,
67bugprone-virtual-near-miss,
68cert-con36-c,
69cert-con54-cpp,
70cert-dcl03-c,
71cert-dcl16-c,
72cert-dcl21-cpp,
73cert-dcl37-c,
74cert-dcl50-cpp,
75cert-dcl51-cpp,
76cert-dcl54-cpp,
77cert-dcl58-cpp,
78cert-dcl59-cpp,
79cert-env33-c,
80cert-err09-cpp,
81cert-err34-c,
82cert-err52-cpp,
83cert-err60-cpp,
84cert-err61-cpp,
85cert-fio38-c,
86cert-flp30-c,
87cert-mem57-cpp,
88cert-msc30-c,
89cert-msc32-c,
90cert-msc50-cpp,
91cert-msc51-cpp,
92cert-oop11-cpp,
93cert-oop54-cpp,
94cert-oop57-cpp,
Ed Tanousd63c72e2022-01-06 12:49:12 -080095cert-oop58-cpp,
96cert-pos44-c,
97cert-pos47-c,
98cert-sig30-c,
99cert-str34-c,
Ed Tanous5db33d62023-07-06 12:34:45 -0700100clang-analyzer-apiModeling.Errno,
Ed Tanous3174e4d2020-10-07 11:41:22 -0700101clang-analyzer-apiModeling.StdCLibraryFunctions,
102clang-analyzer-apiModeling.TrustNonnull,
Ed Tanous5db33d62023-07-06 12:34:45 -0700103clang-analyzer-apiModeling.TrustReturnsNonnull,
Ed Tanous3174e4d2020-10-07 11:41:22 -0700104clang-analyzer-apiModeling.google.GTest,
105clang-analyzer-apiModeling.llvm.CastValue,
106clang-analyzer-apiModeling.llvm.ReturnValue,
107clang-analyzer-core.CallAndMessage,
108clang-analyzer-core.CallAndMessageModeling,
109clang-analyzer-core.DivideZero,
110clang-analyzer-core.DynamicTypePropagation,
111clang-analyzer-core.NonNullParamChecker,
112clang-analyzer-core.NonnilStringConstants,
113clang-analyzer-core.NullDereference,
114clang-analyzer-core.StackAddrEscapeBase,
115clang-analyzer-core.StackAddressEscape,
116clang-analyzer-core.UndefinedBinaryOperatorResult,
117clang-analyzer-core.VLASize,
118clang-analyzer-core.builtin.BuiltinFunctions,
119clang-analyzer-core.builtin.NoReturnFunctions,
120clang-analyzer-core.uninitialized.ArraySubscript,
121clang-analyzer-core.uninitialized.Assign,
122clang-analyzer-core.uninitialized.Branch,
123clang-analyzer-core.uninitialized.CapturedBlockVariable,
Ed Tanous5db33d62023-07-06 12:34:45 -0700124clang-analyzer-core.uninitialized.NewArraySize,
Ed Tanous3174e4d2020-10-07 11:41:22 -0700125clang-analyzer-core.uninitialized.UndefReturn,
126clang-analyzer-cplusplus.InnerPointer,
127clang-analyzer-cplusplus.Move,
128clang-analyzer-cplusplus.NewDelete,
129clang-analyzer-cplusplus.NewDeleteLeaks,
130clang-analyzer-cplusplus.PlacementNew,
131clang-analyzer-cplusplus.PureVirtualCall,
132clang-analyzer-cplusplus.SelfAssignment,
133clang-analyzer-cplusplus.SmartPtrModeling,
Ed Tanous5db33d62023-07-06 12:34:45 -0700134clang-analyzer-cplusplus.StringChecker,
Ed Tanous3174e4d2020-10-07 11:41:22 -0700135clang-analyzer-cplusplus.VirtualCallModeling,
136clang-analyzer-deadcode.DeadStores,
137clang-analyzer-fuchsia.HandleChecker,
138clang-analyzer-nullability.NullPassedToNonnull,
139clang-analyzer-nullability.NullReturnedFromNonnull,
140clang-analyzer-nullability.NullabilityBase,
141clang-analyzer-nullability.NullableDereferenced,
142clang-analyzer-nullability.NullablePassedToNonnull,
143clang-analyzer-nullability.NullableReturnedFromNonnull,
144clang-analyzer-optin.cplusplus.UninitializedObject,
145clang-analyzer-optin.cplusplus.VirtualCall,
146clang-analyzer-optin.mpi.MPI-Checker,
147clang-analyzer-optin.osx.OSObjectCStyleCast,
148clang-analyzer-optin.osx.cocoa.localizability.EmptyLocalizationContextChecker,
149clang-analyzer-optin.osx.cocoa.localizability.NonLocalizedStringChecker,
150clang-analyzer-optin.performance.GCDAntipattern,
151clang-analyzer-optin.performance.Padding,
152clang-analyzer-optin.portability.UnixAPI,
153clang-analyzer-osx.API,
154clang-analyzer-osx.MIG,
155clang-analyzer-osx.NSOrCFErrorDerefChecker,
156clang-analyzer-osx.NumberObjectConversion,
157clang-analyzer-osx.OSObjectRetainCount,
158clang-analyzer-osx.ObjCProperty,
159clang-analyzer-osx.SecKeychainAPI,
160clang-analyzer-osx.cocoa.AtSync,
161clang-analyzer-osx.cocoa.AutoreleaseWrite,
162clang-analyzer-osx.cocoa.ClassRelease,
163clang-analyzer-osx.cocoa.Dealloc,
164clang-analyzer-osx.cocoa.IncompatibleMethodTypes,
165clang-analyzer-osx.cocoa.Loops,
166clang-analyzer-osx.cocoa.MissingSuperCall,
167clang-analyzer-osx.cocoa.NSAutoreleasePool,
168clang-analyzer-osx.cocoa.NSError,
169clang-analyzer-osx.cocoa.NilArg,
170clang-analyzer-osx.cocoa.NonNilReturnValue,
171clang-analyzer-osx.cocoa.ObjCGenerics,
172clang-analyzer-osx.cocoa.RetainCount,
173clang-analyzer-osx.cocoa.RetainCountBase,
174clang-analyzer-osx.cocoa.RunLoopAutoreleaseLeak,
175clang-analyzer-osx.cocoa.SelfInit,
176clang-analyzer-osx.cocoa.SuperDealloc,
177clang-analyzer-osx.cocoa.UnusedIvars,
178clang-analyzer-osx.cocoa.VariadicMethodTypes,
179clang-analyzer-osx.coreFoundation.CFError,
180clang-analyzer-osx.coreFoundation.CFNumber,
181clang-analyzer-osx.coreFoundation.CFRetainRelease,
182clang-analyzer-osx.coreFoundation.containers.OutOfBounds,
183clang-analyzer-osx.coreFoundation.containers.PointerSizedValues,
184clang-analyzer-security.FloatLoopCounter,
185clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
186clang-analyzer-security.insecureAPI.SecuritySyntaxChecker,
187clang-analyzer-security.insecureAPI.UncheckedReturn,
188clang-analyzer-security.insecureAPI.bcmp,
189clang-analyzer-security.insecureAPI.bcopy,
190clang-analyzer-security.insecureAPI.bzero,
191clang-analyzer-security.insecureAPI.decodeValueOfObjCType,
192clang-analyzer-security.insecureAPI.getpw,
193clang-analyzer-security.insecureAPI.gets,
194clang-analyzer-security.insecureAPI.mkstemp,
195clang-analyzer-security.insecureAPI.mktemp,
196clang-analyzer-security.insecureAPI.rand,
197clang-analyzer-security.insecureAPI.strcpy,
198clang-analyzer-security.insecureAPI.vfork,
199clang-analyzer-unix.API,
200clang-analyzer-unix.DynamicMemoryModeling,
201clang-analyzer-unix.Malloc,
202clang-analyzer-unix.MallocSizeof,
203clang-analyzer-unix.MismatchedDeallocator,
204clang-analyzer-unix.Vfork,
205clang-analyzer-unix.cstring.BadSizeArg,
206clang-analyzer-unix.cstring.CStringModeling,
207clang-analyzer-unix.cstring.NullArg,
208clang-analyzer-valist.CopyToSelf,
209clang-analyzer-valist.Uninitialized,
210clang-analyzer-valist.Unterminated,
211clang-analyzer-valist.ValistBase,
212clang-analyzer-webkit.NoUncountedMemberChecker,
213clang-analyzer-webkit.RefCntblBaseVirtualDtor,
Ed Tanous5db33d62023-07-06 12:34:45 -0700214clang-analyzer-webkit.UncountedLambdaCapturesChecker,
Ed Tanous9bc9dc02022-01-07 09:43:17 -0800215cppcoreguidelines-avoid-c-arrays,
216cppcoreguidelines-avoid-goto,
Ed Tanouscf9e4172022-12-21 09:30:16 -0800217cppcoreguidelines-avoid-non-const-global-variables,
Ed Tanous9bc9dc02022-01-07 09:43:17 -0800218cppcoreguidelines-c-copy-assignment-signature,
219cppcoreguidelines-explicit-virtual-functions,
Ed Tanous543f4402022-01-06 13:12:53 -0800220cppcoreguidelines-init-variables,
Ed Tanousd3a9e082022-01-07 09:30:41 -0800221cppcoreguidelines-interfaces-global-init,
Ed Tanous600d2392022-01-07 09:32:03 -0800222cppcoreguidelines-macro-usage,
Ed Tanous9bc9dc02022-01-07 09:43:17 -0800223cppcoreguidelines-narrowing-conversions,
Ed Tanousfcc5aa62022-01-07 09:40:43 -0800224cppcoreguidelines-no-malloc,
Ed Tanous9bc9dc02022-01-07 09:43:17 -0800225cppcoreguidelines-prefer-member-initializer,
Ed Tanous9b6ffca2022-01-07 09:33:43 -0800226cppcoreguidelines-pro-bounds-array-to-pointer-decay,
Ed Tanousca45aa32022-01-07 09:28:45 -0800227cppcoreguidelines-pro-bounds-pointer-arithmetic,
Ed Tanous4ecc6182022-01-07 09:36:26 -0800228cppcoreguidelines-pro-type-const-cast,
Ed Tanous4bac4a82022-01-07 09:37:55 -0800229cppcoreguidelines-pro-type-cstyle-cast,
Ed Tanousd3a9e082022-01-07 09:30:41 -0800230cppcoreguidelines-pro-type-member-init,
Ed Tanous46ff87b2022-01-07 09:25:51 -0800231cppcoreguidelines-pro-type-reinterpret-cast,
Ed Tanousadf3d0e2022-01-07 09:42:21 -0800232cppcoreguidelines-pro-type-static-cast-downcast,
Ed Tanous9bc9dc02022-01-07 09:43:17 -0800233cppcoreguidelines-pro-type-union-access,
Ed Tanous49d1eea2022-01-07 09:39:33 -0800234cppcoreguidelines-pro-type-vararg,
Ed Tanous9bc9dc02022-01-07 09:43:17 -0800235cppcoreguidelines-slicing,
Ed Tanousecd6a3a2022-01-07 09:18:40 -0800236cppcoreguidelines-special-member-functions,
Ed Tanous4e23a442022-06-06 09:57:26 -0700237google-explicit-constructor,
Ed Tanousf23b7292020-10-15 09:41:17 -0700238misc-misplaced-const,
Ed Tanousb00dcc22021-02-23 12:52:50 -0800239#misc-no-recursion,
Ed Tanousf23b7292020-10-15 09:41:17 -0700240misc-redundant-expression,
241misc-static-assert,
242misc-throw-by-value-catch-by-reference,
243misc-unconventional-assign-operator,
244misc-uniqueptr-reset-release,
245misc-unused-using-decls,
Ed Tanous3174e4d2020-10-07 11:41:22 -0700246modernize-avoid-bind,
247modernize-deprecated-headers,
248modernize-deprecated-ios-base-aliases,
249modernize-loop-convert,
250modernize-make-shared,
251modernize-make-unique,
252modernize-raw-string-literal,
Ed Tanousd9fcfcc2023-07-06 12:14:44 -0700253modernize-redundant-void-arg,
Ed Tanous3174e4d2020-10-07 11:41:22 -0700254modernize-replace-auto-ptr,
255modernize-replace-random-shuffle,
256modernize-return-braced-init-list,
257modernize-shrink-to-fit,
258modernize-unary-static-assert,
259modernize-use-bool-literals,
260modernize-use-default-member-init,
261modernize-use-emplace,
262modernize-use-equals-default,
263modernize-use-equals-delete,
264modernize-use-noexcept,
265modernize-use-nullptr,
266modernize-use-override,
267modernize-use-transparent-functors,
268modernize-use-uncaught-exceptions,
269modernize-use-using,
Ed Tanousf23b7292020-10-15 09:41:17 -0700270performance-faster-string-find,
Ed Tanous3174e4d2020-10-07 11:41:22 -0700271performance-for-range-copy,
272performance-implicit-conversion-in-loop,
273performance-inefficient-algorithm,
Ed Tanousf23b7292020-10-15 09:41:17 -0700274performance-inefficient-string-concatenation,
Ed Tanous3174e4d2020-10-07 11:41:22 -0700275performance-inefficient-vector-operation,
Ed Tanousf23b7292020-10-15 09:41:17 -0700276performance-move-const-arg,
Ed Tanous3174e4d2020-10-07 11:41:22 -0700277performance-move-constructor-init,
278performance-no-automatic-move,
Ed Tanous31873b32022-01-25 16:27:50 -0800279performance-no-int-to-ptr,
Ed Tanousf23b7292020-10-15 09:41:17 -0700280performance-noexcept-move-constructor,
Ed Tanous3174e4d2020-10-07 11:41:22 -0700281performance-trivially-destructible,
282performance-type-promotion-in-math-fn,
283performance-unnecessary-copy-initialization,
Ed Tanousf23b7292020-10-15 09:41:17 -0700284performance-unnecessary-value-param,
Ed Tanous9eb808c2022-01-25 10:19:23 -0800285readability-avoid-const-params-in-decls,
Ed Tanous3174e4d2020-10-07 11:41:22 -0700286readability-braces-around-statements,
287readability-const-return-type,
Ed Tanousdb0d36e2023-06-30 10:37:05 -0700288readability-container-contains,
Ed Tanous0f837072023-06-30 09:57:26 -0700289readability-container-data-pointer,
Ed Tanous26f69762022-01-25 09:49:11 -0800290readability-container-size-empty,
Ed Tanous56d23962022-02-14 20:42:02 -0800291readability-convert-member-functions-to-static,
Ed Tanous3174e4d2020-10-07 11:41:22 -0700292readability-delete-null-pointer,
293readability-deleted-default,
Ed Tanousf23b7292020-10-15 09:41:17 -0700294readability-else-after-return,
Ed Tanous55f79e62022-01-25 11:26:16 -0800295readability-function-size,
296readability-identifier-naming,
Ed Tanouse662eae2022-01-25 10:39:19 -0800297readability-implicit-bool-conversion,
Ed Tanous55f79e62022-01-25 11:26:16 -0800298readability-inconsistent-declaration-parameter-name,
299readability-isolate-declaration,
Ed Tanous56d23962022-02-14 20:42:02 -0800300readability-make-member-function-const,
Ed Tanous55f79e62022-01-25 11:26:16 -0800301readability-misleading-indentation,
302readability-misplaced-array-index,
Ed Tanous104f09c2022-01-25 09:56:04 -0800303readability-named-parameter,
Ed Tanous56d23962022-02-14 20:42:02 -0800304readability-non-const-parameter,
Ed Tanous55f79e62022-01-25 11:26:16 -0800305readability-qualified-auto,
306readability-redundant-access-specifiers,
Ed Tanousdcf2ebc2022-01-25 10:07:45 -0800307readability-redundant-control-flow,
Ed Tanouse05aec52022-01-25 10:28:56 -0800308readability-redundant-declaration,
309readability-redundant-function-ptr-dereference,
310readability-redundant-member-init,
311readability-redundant-preprocessor,
312readability-redundant-smartptr-get,
313readability-redundant-string-cstr,
314readability-redundant-string-init,
Ed Tanous55f79e62022-01-25 11:26:16 -0800315readability-simplify-boolean-expr,
316readability-simplify-subscript-expr,
Ed Tanous71d5d8d2022-01-25 11:04:33 -0800317readability-static-accessed-through-instance,
Ed Tanous55f79e62022-01-25 11:26:16 -0800318readability-static-definition-in-anonymous-namespace,
319readability-string-compare,
320readability-suspicious-call-argument,
321readability-uniqueptr-delete-release,
Ed Tanousdbb59d42022-01-25 11:09:55 -0800322readability-uppercase-literal-suffix'
Ed Tanous3174e4d2020-10-07 11:41:22 -0700323
324WarningsAsErrors: '*'
Ed Tanousb0bb6f22020-09-28 16:43:15 -0700325HeaderFilterRegex: '.*'
326CheckOptions:
327 - { key: readability-identifier-naming.ClassCase, value: CamelCase }
328 - { key: readability-identifier-naming.VariableCase, value: camelBack }
329 - { key: readability-identifier-naming.FunctionCase, value: camelBack }
Ed Tanous81ce6092020-12-17 16:54:55 +0000330 - { key: readability-identifier-naming.ParameterCase, value: camelBack }
Ed Tanousb0bb6f22020-09-28 16:43:15 -0700331 - { key: readability-identifier-naming.NamespaceCase, value: lower_case }
332 - { key: readability-identifier-naming.StructCase, value: CamelCase }
Ed Tanous62598e32023-07-17 17:06:25 -0700333 - { key: readability-identifier-naming.FunctionIgnoredRegexp, value: (BMCWEB_LOG_DEBUG|BMCWEB_LOG_INFO|BMCWEB_LOG_WARNING|BMCWEB_LOG_ERROR|BMCWEB_LOG_CRITICAL) }
Ed Tanous0ec8b832022-03-14 14:56:47 -0700334 - { key: cppcoreguidelines-macro-usage.AllowedRegexp, value: DEBUG*|NLOHMANN_JSON_SERIALIZE_ENUM }
Ed Tanousd9f466b2023-03-06 15:04:25 -0800335 - { key: performance-unnecessary-value-param.AllowedTypes, value: ((segments_view)|(url_view)) }