blob: 7a929858b87d938209fa3fa3fc5c1469695f20e2 [file] [log] [blame]
Ed Tanous8a57ec02020-10-09 12:46:52 -07001Checks: '
2-*,
Ed Tanousbce0f032022-07-09 07:27:35 -07003boost-use-to-string,
Ed Tanous8a57ec02020-10-09 12:46:52 -07004bugprone-argument-comment,
Ed Tanous72b39112024-04-03 18:35:24 -07005bugprone-assignment-in-if-condition,
Ed Tanous8a57ec02020-10-09 12:46:52 -07006bugprone-assert-side-effect,
7bugprone-bad-signal-to-kill-thread,
8bugprone-bool-pointer-implicit-conversion,
9bugprone-branch-clone,
10bugprone-copy-constructor-init,
11bugprone-dangling-handle,
12bugprone-dynamic-static-initializers,
13bugprone-fold-init-type,
14bugprone-forward-declaration-namespace,
15bugprone-forwarding-reference-overload,
Ed Tanousbce0f032022-07-09 07:27:35 -070016bugprone-implicit-widening-of-multiplication-result,
Ed Tanous8a57ec02020-10-09 12:46:52 -070017bugprone-inaccurate-erase,
18bugprone-incorrect-roundings,
19bugprone-infinite-loop,
20bugprone-integer-division,
21bugprone-lambda-function-name,
22bugprone-macro-parentheses,
23bugprone-macro-repeated-side-effects,
24bugprone-misplaced-operator-in-strlen-in-alloc,
25bugprone-misplaced-pointer-arithmetic-in-alloc,
26bugprone-misplaced-widening-cast,
Ed Tanousbce0f032022-07-09 07:27:35 -070027bugprone-move-forwarding-reference,
Ed Tanous8a57ec02020-10-09 12:46:52 -070028bugprone-multiple-statement-macro,
Ed Tanousb0745282024-04-03 18:57:45 -070029bugprone-optional-value-conversion,
Ed Tanous8a57ec02020-10-09 12:46:52 -070030bugprone-no-escape,
31bugprone-not-null-terminated-result,
32bugprone-parent-virtual-call,
33bugprone-posix-return,
Ed Tanousbce0f032022-07-09 07:27:35 -070034bugprone-redundant-branch-condition,
Ed Tanous8a57ec02020-10-09 12:46:52 -070035bugprone-reserved-identifier,
Ed Tanousbce0f032022-07-09 07:27:35 -070036bugprone-signal-handler,
Ed Tanous8a57ec02020-10-09 12:46:52 -070037bugprone-signed-char-misuse,
38bugprone-sizeof-container,
39bugprone-sizeof-expression,
40bugprone-spuriously-wake-up-functions,
41bugprone-string-constructor,
42bugprone-string-integer-assignment,
43bugprone-string-literal-with-embedded-nul,
44bugprone-suspicious-enum-usage,
45bugprone-suspicious-include,
46bugprone-suspicious-memset-usage,
47bugprone-suspicious-missing-comma,
48bugprone-suspicious-semicolon,
49bugprone-suspicious-string-compare,
50bugprone-swapped-arguments,
51bugprone-terminating-continue,
52bugprone-throw-keyword-missing,
53bugprone-too-small-loop-variable,
54bugprone-undefined-memory-manipulation,
55bugprone-undelegated-constructor,
Ed Tanousbce0f032022-07-09 07:27:35 -070056bugprone-unhandled-exception-at-new,
Ed Tanous8a57ec02020-10-09 12:46:52 -070057bugprone-unhandled-self-assignment,
Ed Tanousf3fd5242024-04-03 18:41:07 -070058bugprone-unused-local-non-trivial-variable,
Ed Tanous8a57ec02020-10-09 12:46:52 -070059bugprone-unused-raii,
60bugprone-unused-return-value,
61bugprone-use-after-move,
62bugprone-virtual-near-miss,
Ed Tanousa25223c2022-01-13 19:11:38 -080063cert-con36-c,
64cert-con54-cpp,
65cert-dcl03-c,
66cert-dcl16-c,
67cert-dcl21-cpp,
Ed Tanousa25223c2022-01-13 19:11:38 -080068cert-dcl50-cpp,
Ed Tanousa25223c2022-01-13 19:11:38 -080069cert-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 Tanousbce0f032022-07-09 07:27:35 -070088cert-oop58-cpp,
89cert-pos44-c,
90cert-pos47-c,
91cert-sig30-c,
92cert-str34-c,
Ed Tanous193105f2022-07-09 07:24:31 -070093clang-analyzer-apiModeling.StdCLibraryFunctions,
94clang-analyzer-apiModeling.TrustNonnull,
Ed Tanousa25223c2022-01-13 19:11:38 -080095clang-analyzer-apiModeling.google.GTest,
96clang-analyzer-apiModeling.llvm.CastValue,
97clang-analyzer-apiModeling.llvm.ReturnValue,
Ed Tanousa25223c2022-01-13 19:11:38 -080098clang-analyzer-core.CallAndMessageModeling,
99clang-analyzer-core.DivideZero,
100clang-analyzer-core.DynamicTypePropagation,
Ed Tanousa25223c2022-01-13 19:11:38 -0800101clang-analyzer-core.NonNullParamChecker,
Ed Tanous193105f2022-07-09 07:24:31 -0700102clang-analyzer-core.NonnilStringConstants,
Ed Tanousa25223c2022-01-13 19:11:38 -0800103clang-analyzer-core.NullDereference,
104clang-analyzer-core.StackAddrEscapeBase,
105clang-analyzer-core.StackAddressEscape,
106clang-analyzer-core.UndefinedBinaryOperatorResult,
Ed Tanous193105f2022-07-09 07:24:31 -0700107clang-analyzer-core.VLASize,
108clang-analyzer-core.builtin.BuiltinFunctions,
109clang-analyzer-core.builtin.NoReturnFunctions,
Ed Tanousa25223c2022-01-13 19:11:38 -0800110clang-analyzer-core.uninitialized.ArraySubscript,
111clang-analyzer-core.uninitialized.Assign,
112clang-analyzer-core.uninitialized.Branch,
113clang-analyzer-core.uninitialized.CapturedBlockVariable,
114clang-analyzer-core.uninitialized.UndefReturn,
Ed Tanousa25223c2022-01-13 19:11:38 -0800115clang-analyzer-cplusplus.InnerPointer,
116clang-analyzer-cplusplus.Move,
117clang-analyzer-cplusplus.NewDelete,
118clang-analyzer-cplusplus.NewDeleteLeaks,
119clang-analyzer-cplusplus.PlacementNew,
120clang-analyzer-cplusplus.PureVirtualCall,
121clang-analyzer-cplusplus.SelfAssignment,
122clang-analyzer-cplusplus.SmartPtrModeling,
123clang-analyzer-cplusplus.VirtualCallModeling,
124clang-analyzer-deadcode.DeadStores,
125clang-analyzer-fuchsia.HandleChecker,
Ed Tanous193105f2022-07-09 07:24:31 -0700126clang-analyzer-nullability.NullPassedToNonnull,
127clang-analyzer-nullability.NullReturnedFromNonnull,
Ed Tanousa25223c2022-01-13 19:11:38 -0800128clang-analyzer-nullability.NullabilityBase,
129clang-analyzer-nullability.NullableDereferenced,
130clang-analyzer-nullability.NullablePassedToNonnull,
131clang-analyzer-nullability.NullableReturnedFromNonnull,
Ed Tanousa25223c2022-01-13 19:11:38 -0800132clang-analyzer-optin.cplusplus.UninitializedObject,
133clang-analyzer-optin.cplusplus.VirtualCall,
134clang-analyzer-optin.mpi.MPI-Checker,
Ed Tanous193105f2022-07-09 07:24:31 -0700135clang-analyzer-optin.osx.OSObjectCStyleCast,
Ed Tanousa25223c2022-01-13 19:11:38 -0800136clang-analyzer-optin.osx.cocoa.localizability.EmptyLocalizationContextChecker,
137clang-analyzer-optin.osx.cocoa.localizability.NonLocalizedStringChecker,
Ed Tanousa25223c2022-01-13 19:11:38 -0800138clang-analyzer-optin.performance.GCDAntipattern,
139clang-analyzer-optin.performance.Padding,
140clang-analyzer-optin.portability.UnixAPI,
141clang-analyzer-osx.API,
Ed Tanous193105f2022-07-09 07:24:31 -0700142clang-analyzer-osx.MIG,
143clang-analyzer-osx.NSOrCFErrorDerefChecker,
144clang-analyzer-osx.NumberObjectConversion,
145clang-analyzer-osx.OSObjectRetainCount,
146clang-analyzer-osx.ObjCProperty,
147clang-analyzer-osx.SecKeychainAPI,
Ed Tanousa25223c2022-01-13 19:11:38 -0800148clang-analyzer-osx.cocoa.AtSync,
149clang-analyzer-osx.cocoa.AutoreleaseWrite,
150clang-analyzer-osx.cocoa.ClassRelease,
151clang-analyzer-osx.cocoa.Dealloc,
152clang-analyzer-osx.cocoa.IncompatibleMethodTypes,
153clang-analyzer-osx.cocoa.Loops,
154clang-analyzer-osx.cocoa.MissingSuperCall,
Ed Tanousa25223c2022-01-13 19:11:38 -0800155clang-analyzer-osx.cocoa.NSAutoreleasePool,
156clang-analyzer-osx.cocoa.NSError,
Ed Tanous193105f2022-07-09 07:24:31 -0700157clang-analyzer-osx.cocoa.NilArg,
158clang-analyzer-osx.cocoa.NonNilReturnValue,
Ed Tanousa25223c2022-01-13 19:11:38 -0800159clang-analyzer-osx.cocoa.ObjCGenerics,
160clang-analyzer-osx.cocoa.RetainCount,
161clang-analyzer-osx.cocoa.RetainCountBase,
162clang-analyzer-osx.cocoa.RunLoopAutoreleaseLeak,
163clang-analyzer-osx.cocoa.SelfInit,
164clang-analyzer-osx.cocoa.SuperDealloc,
165clang-analyzer-osx.cocoa.UnusedIvars,
166clang-analyzer-osx.cocoa.VariadicMethodTypes,
167clang-analyzer-osx.coreFoundation.CFError,
168clang-analyzer-osx.coreFoundation.CFNumber,
169clang-analyzer-osx.coreFoundation.CFRetainRelease,
170clang-analyzer-osx.coreFoundation.containers.OutOfBounds,
171clang-analyzer-osx.coreFoundation.containers.PointerSizedValues,
Ed Tanousa25223c2022-01-13 19:11:38 -0800172clang-analyzer-security.FloatLoopCounter,
Ed Tanous193105f2022-07-09 07:24:31 -0700173clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
174clang-analyzer-security.insecureAPI.SecuritySyntaxChecker,
175clang-analyzer-security.insecureAPI.UncheckedReturn,
Ed Tanousa25223c2022-01-13 19:11:38 -0800176clang-analyzer-security.insecureAPI.bcmp,
177clang-analyzer-security.insecureAPI.bcopy,
178clang-analyzer-security.insecureAPI.bzero,
179clang-analyzer-security.insecureAPI.decodeValueOfObjCType,
Ed Tanousa25223c2022-01-13 19:11:38 -0800180clang-analyzer-security.insecureAPI.getpw,
181clang-analyzer-security.insecureAPI.gets,
182clang-analyzer-security.insecureAPI.mkstemp,
183clang-analyzer-security.insecureAPI.mktemp,
184clang-analyzer-security.insecureAPI.rand,
Ed Tanousa25223c2022-01-13 19:11:38 -0800185clang-analyzer-security.insecureAPI.strcpy,
Ed Tanousa25223c2022-01-13 19:11:38 -0800186clang-analyzer-security.insecureAPI.vfork,
187clang-analyzer-unix.API,
Ed Tanousa25223c2022-01-13 19:11:38 -0800188clang-analyzer-unix.DynamicMemoryModeling,
189clang-analyzer-unix.Malloc,
190clang-analyzer-unix.MallocSizeof,
191clang-analyzer-unix.MismatchedDeallocator,
192clang-analyzer-unix.Vfork,
Ed Tanous193105f2022-07-09 07:24:31 -0700193clang-analyzer-unix.cstring.BadSizeArg,
194clang-analyzer-unix.cstring.CStringModeling,
195clang-analyzer-unix.cstring.NullArg,
Ed Tanousa25223c2022-01-13 19:11:38 -0800196clang-analyzer-valist.CopyToSelf,
197clang-analyzer-valist.Uninitialized,
198clang-analyzer-valist.Unterminated,
199clang-analyzer-valist.ValistBase,
200clang-analyzer-webkit.NoUncountedMemberChecker,
201clang-analyzer-webkit.RefCntblBaseVirtualDtor,
Ed Tanous532c8642022-01-14 09:48:15 -0800202cppcoreguidelines-avoid-c-arrays,
Ed Tanous73030632022-01-14 10:09:47 -0800203cppcoreguidelines-avoid-goto,
Ed Tanousbce0f032022-07-09 07:27:35 -0700204cppcoreguidelines-c-copy-assignment-signature,
205cppcoreguidelines-explicit-virtual-functions,
Ed Tanousa771f6a2022-01-14 09:36:51 -0800206cppcoreguidelines-init-variables,
Ed Tanousbce0f032022-07-09 07:27:35 -0700207cppcoreguidelines-interfaces-global-init,
208cppcoreguidelines-macro-usage,
209cppcoreguidelines-no-malloc,
210cppcoreguidelines-prefer-member-initializer,
211cppcoreguidelines-pro-bounds-array-to-pointer-decay,
212cppcoreguidelines-pro-type-const-cast,
213cppcoreguidelines-pro-type-cstyle-cast,
214cppcoreguidelines-pro-type-member-init,
215cppcoreguidelines-pro-type-reinterpret-cast,
216cppcoreguidelines-pro-type-static-cast-downcast,
217cppcoreguidelines-pro-type-union-access,
Ed Tanous99c44092022-01-14 09:59:09 -0800218cppcoreguidelines-pro-type-vararg,
Ed Tanous91423432024-04-04 08:34:21 -0700219cppcoreguidelines-rvalue-reference-param-not-moved,
Ed Tanousbce0f032022-07-09 07:27:35 -0700220cppcoreguidelines-slicing,
221google-explicit-constructor,
Ed Tanouseacbfdd2024-04-04 12:00:24 -0700222misc-include-cleaner,
Ed Tanous8a57ec02020-10-09 12:46:52 -0700223misc-misplaced-const,
Ed Tanous8a57ec02020-10-09 12:46:52 -0700224misc-redundant-expression,
225misc-static-assert,
226misc-throw-by-value-catch-by-reference,
227misc-unconventional-assign-operator,
228misc-uniqueptr-reset-release,
229misc-unused-using-decls,
Ed Tanousa25223c2022-01-13 19:11:38 -0800230modernize-avoid-bind,
231modernize-deprecated-headers,
232modernize-deprecated-ios-base-aliases,
233modernize-loop-convert,
234modernize-make-shared,
235modernize-make-unique,
236modernize-raw-string-literal,
Ed Tanous201a1012024-04-03 18:07:28 -0700237modernize-redundant-void-arg,
Ed Tanousa25223c2022-01-13 19:11:38 -0800238modernize-replace-auto-ptr,
239modernize-replace-random-shuffle,
240modernize-return-braced-init-list,
241modernize-shrink-to-fit,
242modernize-unary-static-assert,
243modernize-use-bool-literals,
244modernize-use-default-member-init,
245modernize-use-emplace,
246modernize-use-equals-default,
247modernize-use-equals-delete,
248modernize-use-noexcept,
249modernize-use-nullptr,
250modernize-use-override,
251modernize-use-transparent-functors,
252modernize-use-uncaught-exceptions,
253modernize-use-using,
Ed Tanous8a57ec02020-10-09 12:46:52 -0700254performance-faster-string-find,
255performance-for-range-copy,
256performance-implicit-conversion-in-loop,
257performance-inefficient-algorithm,
258performance-inefficient-string-concatenation,
259performance-inefficient-vector-operation,
260performance-move-const-arg,
261performance-move-constructor-init,
Ed Tanousa25223c2022-01-13 19:11:38 -0800262performance-no-automatic-move,
Ed Tanousbce0f032022-07-09 07:27:35 -0700263performance-no-int-to-ptr,
Ed Tanous8a57ec02020-10-09 12:46:52 -0700264performance-noexcept-move-constructor,
265performance-trivially-destructible,
Ed Tanousa25223c2022-01-13 19:11:38 -0800266performance-type-promotion-in-math-fn,
Ed Tanousa25223c2022-01-13 19:11:38 -0800267performance-unnecessary-copy-initialization,
Ed Tanous8a57ec02020-10-09 12:46:52 -0700268performance-unnecessary-value-param,
Ed Tanousbce0f032022-07-09 07:27:35 -0700269readability-avoid-const-params-in-decls,
Ed Tanous8a57ec02020-10-09 12:46:52 -0700270readability-braces-around-statements,
271readability-const-return-type,
Ed Tanousde366c82024-04-03 19:04:51 -0700272readability-container-data-pointer,
Ed Tanousbce0f032022-07-09 07:27:35 -0700273readability-container-size-empty,
274readability-convert-member-functions-to-static,
Ed Tanous8a57ec02020-10-09 12:46:52 -0700275readability-delete-null-pointer,
276readability-deleted-default,
Ed Tanousa25223c2022-01-13 19:11:38 -0800277readability-else-after-return,
Ed Tanousbce0f032022-07-09 07:27:35 -0700278readability-function-size,
279readability-identifier-naming,
280readability-implicit-bool-conversion,
281readability-inconsistent-declaration-parameter-name,
282readability-isolate-declaration,
283readability-make-member-function-const,
284readability-misleading-indentation,
285readability-misplaced-array-index,
286readability-named-parameter,
287readability-non-const-parameter,
288readability-qualified-auto,
289readability-redundant-access-specifiers,
290readability-redundant-control-flow,
291readability-redundant-declaration,
292readability-redundant-function-ptr-dereference,
293readability-redundant-member-init,
294readability-redundant-preprocessor,
295readability-redundant-smartptr-get,
296readability-redundant-string-cstr,
297readability-redundant-string-init,
298readability-simplify-boolean-expr,
299readability-simplify-subscript-expr,
300readability-static-accessed-through-instance,
301readability-static-definition-in-anonymous-namespace,
302readability-string-compare,
303readability-suspicious-call-argument,
304readability-uniqueptr-delete-release,
305readability-uppercase-literal-suffix'
Ed Tanous8a57ec02020-10-09 12:46:52 -0700306
307WarningsAsErrors: '*'
Ed Tanouseacbfdd2024-04-04 12:00:24 -0700308HeaderFilterRegex: '.*'
Ed Tanous8a57ec02020-10-09 12:46:52 -0700309CheckOptions:
310 - { key: readability-identifier-naming.ClassCase, value: CamelCase }
311 - { key: readability-identifier-naming.VariableCase, value: camelBack }
312 - { key: readability-identifier-naming.FunctionCase, value: camelBack }
313 - { key: readability-identifier-naming.ParameterCase, value: camelBack }
314 - { key: readability-identifier-naming.NamespaceCase, value: lower_case }
315 - { key: readability-identifier-naming.StructCase, value: CamelCase }
Ed Tanouseacbfdd2024-04-04 12:00:24 -0700316 - { key: misc-include-cleaner.IgnoreHeaders, value: ((stdlib.h)|(nlohmann/json_fwd.hpp)|(boost/.*/src.hpp)|(boost/.*/detail/.*)|(nlohmann/detail/.*)|(stdio.h)|(ranges)|(bits/chrono.h)|(boost/system/error_code.hpp)) }