xref: /openbmc/bios-bmc-smm-error-logger/.clang-tidy (revision 4263ed4c91eb4ca13dbd5551fba5a44d43578d94)
1Checks: '
2-*,
3
4bugprone-*,
5-bugprone-easily-swappable-parameters,
6-bugprone-exception-escape,
7-bugprone-unchecked-optional-access,
8cert-*,
9clang-analyzer-*,
10-clang-analyzer-optin.*,
11-clang-analyzer-osx.*,
12-clang-analyzer-webkit.*,
13cppcoreguidelines-*,
14-cppcoreguidelines-avoid-const-or-ref-data-members,
15-cppcoreguidelines-avoid-magic-numbers,
16-cppcoreguidelines-init-variables,
17-cppcoreguidelines-macro-to-enum,
18-cppcoreguidelines-macro-usage,
19-cppcoreguidelines-non-private-member-variables-in-classes,
20-cppcoreguidelines-prefer-member-initializer,
21-cppcoreguidelines-pro-bounds-constant-array-index,
22-cppcoreguidelines-pro-bounds-pointer-arithmetic,
23-cppcoreguidelines-pro-type-member-init,
24-cppcoreguidelines-pro-type-reinterpret-cast,
25-cppcoreguidelines-special-member-functions,
26-cppcoreguidelines-use-default-member-init,
27-cppcoreguidelines-virtual-class-destructor,
28misc-*,
29-misc-const-correctness,
30-misc-include-cleaner,
31-misc-non-private-member-variables-in-classes,
32modernize-*,
33-modernize-concat-nested-namespaces,
34-modernize-macro-to-enum,
35-modernize-use-auto,
36-modernize-use-default-member-init,
37-modernize-use-nodiscard,
38-modernize-use-trailing-return-type,
39performance-*,
40-performance-enum-size,
41readability-*,
42-readability-avoid-const-params-in-decls,
43-readability-convert-member-functions-to-static,
44-readability-function-cognitive-complexity,
45-readability-identifier-length,
46-readability-implicit-bool-conversion,
47-readability-magic-numbers,
48-readability-make-member-function-const,
49-readability-redundant-string-cstr,
50-readability-redundant-string-init,
51-readability-simplify-boolean-expr,
52-readability-static-definition-in-anonymous-namespace,
53'
54
55# Treat all warnings as errors
56WarningsAsErrors: '*'
57
58# Apply checks to all files
59HeaderFilterRegex: '^((?!linux).)*$'
60
61CheckOptions:
62  - { key: readability-identifier-naming.ClassCase,     value: CamelCase  }
63  - { key: readability-identifier-naming.VariableCase,  value: camelBack }
64  - { key: readability-identifier-naming.FunctionCase,  value: camelBack }
65  - { key: readability-identifier-naming.ParameterCase, value: camelBack }
66  - { key: readability-identifier-naming.NamespaceCase, value: lower_case }
67  - { key: readability-identifier-naming.StructCase,    value: CamelCase  }
68
69# Disable automatic formatting
70FormatStyle: none
71
72