2019-04-17 12:06:00 +02:00
|
|
|
---
|
|
|
|
Checks: >-
|
|
|
|
*,
|
|
|
|
-abseil-*,
|
2021-09-13 09:35:55 +02:00
|
|
|
-altera-*,
|
2019-04-17 12:06:00 +02:00
|
|
|
-android-*,
|
|
|
|
-boost-*,
|
2023-07-30 21:44:56 +02:00
|
|
|
-bugprone-easily-swappable-parameters,
|
|
|
|
-bugprone-implicit-widening-of-multiplication-result,
|
2024-12-02 23:29:45 +01:00
|
|
|
-bugprone-multi-level-implicit-pointer-conversion,
|
2021-06-08 22:16:17 +02:00
|
|
|
-bugprone-narrowing-conversions,
|
|
|
|
-bugprone-signed-char-misuse,
|
2024-12-02 23:29:45 +01:00
|
|
|
-bugprone-switch-missing-default-case,
|
2019-04-17 12:06:00 +02:00
|
|
|
-cert-dcl50-cpp,
|
2023-07-30 21:44:56 +02:00
|
|
|
-cert-err33-c,
|
2019-04-17 12:06:00 +02:00
|
|
|
-cert-err58-cpp,
|
2021-06-08 22:16:17 +02:00
|
|
|
-cert-oop57-cpp,
|
|
|
|
-cert-str34-c,
|
2024-12-02 23:29:45 +01:00
|
|
|
-clang-analyzer-optin.core.EnumCastOutOfRange,
|
2021-06-10 13:04:40 +02:00
|
|
|
-clang-analyzer-optin.cplusplus.UninitializedObject,
|
2019-04-17 12:06:00 +02:00
|
|
|
-clang-analyzer-osx.*,
|
2021-08-09 22:43:18 +02:00
|
|
|
-clang-diagnostic-delete-abstract-non-virtual-dtor,
|
|
|
|
-clang-diagnostic-delete-non-abstract-non-virtual-dtor,
|
2024-12-05 09:39:30 +01:00
|
|
|
-clang-diagnostic-deprecated-declarations,
|
2023-07-30 21:44:56 +02:00
|
|
|
-clang-diagnostic-ignored-optimization-argument,
|
2024-12-02 23:29:45 +01:00
|
|
|
-clang-diagnostic-missing-field-initializers,
|
2021-06-08 22:16:17 +02:00
|
|
|
-clang-diagnostic-shadow-field,
|
2021-08-09 22:43:18 +02:00
|
|
|
-clang-diagnostic-unused-const-variable,
|
2021-12-01 21:03:51 +01:00
|
|
|
-clang-diagnostic-unused-parameter,
|
2024-12-02 23:29:45 +01:00
|
|
|
-clang-diagnostic-vla-cxx-extension,
|
2021-09-13 09:35:55 +02:00
|
|
|
-concurrency-*,
|
2021-06-08 22:16:17 +02:00
|
|
|
-cppcoreguidelines-avoid-c-arrays,
|
2024-12-02 23:29:45 +01:00
|
|
|
-cppcoreguidelines-avoid-const-or-ref-data-members,
|
|
|
|
-cppcoreguidelines-avoid-do-while,
|
2021-06-08 22:16:17 +02:00
|
|
|
-cppcoreguidelines-avoid-magic-numbers,
|
|
|
|
-cppcoreguidelines-init-variables,
|
2024-12-02 23:29:45 +01:00
|
|
|
-cppcoreguidelines-macro-to-enum,
|
2021-06-08 22:16:17 +02:00
|
|
|
-cppcoreguidelines-macro-usage,
|
2024-12-02 23:29:45 +01:00
|
|
|
-cppcoreguidelines-missing-std-forward,
|
2021-06-08 22:16:17 +02:00
|
|
|
-cppcoreguidelines-narrowing-conversions,
|
|
|
|
-cppcoreguidelines-non-private-member-variables-in-classes,
|
2024-12-02 23:29:45 +01:00
|
|
|
-cppcoreguidelines-owning-memory,
|
2023-07-30 21:44:56 +02:00
|
|
|
-cppcoreguidelines-prefer-member-initializer,
|
2019-04-17 12:06:00 +02:00
|
|
|
-cppcoreguidelines-pro-bounds-array-to-pointer-decay,
|
|
|
|
-cppcoreguidelines-pro-bounds-constant-array-index,
|
|
|
|
-cppcoreguidelines-pro-bounds-pointer-arithmetic,
|
|
|
|
-cppcoreguidelines-pro-type-const-cast,
|
|
|
|
-cppcoreguidelines-pro-type-cstyle-cast,
|
|
|
|
-cppcoreguidelines-pro-type-member-init,
|
|
|
|
-cppcoreguidelines-pro-type-reinterpret-cast,
|
|
|
|
-cppcoreguidelines-pro-type-static-cast-downcast,
|
|
|
|
-cppcoreguidelines-pro-type-union-access,
|
|
|
|
-cppcoreguidelines-pro-type-vararg,
|
2024-12-02 23:29:45 +01:00
|
|
|
-cppcoreguidelines-rvalue-reference-param-not-moved,
|
2019-04-17 12:06:00 +02:00
|
|
|
-cppcoreguidelines-special-member-functions,
|
2024-12-02 23:29:45 +01:00
|
|
|
-cppcoreguidelines-use-default-member-init,
|
2023-07-30 21:44:56 +02:00
|
|
|
-cppcoreguidelines-virtual-class-destructor,
|
2019-04-17 12:06:00 +02:00
|
|
|
-fuchsia-multiple-inheritance,
|
|
|
|
-fuchsia-overloaded-operator,
|
|
|
|
-fuchsia-statically-constructed-objects,
|
2021-06-10 13:04:40 +02:00
|
|
|
-fuchsia-default-arguments-declarations,
|
|
|
|
-fuchsia-default-arguments-calls,
|
2019-04-17 12:06:00 +02:00
|
|
|
-google-build-using-namespace,
|
|
|
|
-google-explicit-constructor,
|
|
|
|
-google-readability-braces-around-statements,
|
|
|
|
-google-readability-casting,
|
2021-12-01 05:21:19 +01:00
|
|
|
-google-readability-namespace-comments,
|
2019-04-17 12:06:00 +02:00
|
|
|
-google-readability-todo,
|
|
|
|
-google-runtime-references,
|
|
|
|
-hicpp-*,
|
2021-06-08 22:16:17 +02:00
|
|
|
-llvm-else-after-return,
|
2019-04-17 12:06:00 +02:00
|
|
|
-llvm-header-guard,
|
|
|
|
-llvm-include-order,
|
2021-06-08 22:16:17 +02:00
|
|
|
-llvm-qualified-auto,
|
|
|
|
-llvmlibc-*,
|
2024-12-02 23:29:45 +01:00
|
|
|
-misc-const-correctness,
|
|
|
|
-misc-include-cleaner,
|
2021-06-08 22:16:17 +02:00
|
|
|
-misc-no-recursion,
|
2024-12-02 23:29:45 +01:00
|
|
|
-misc-non-private-member-variables-in-classes,
|
2019-04-17 12:06:00 +02:00
|
|
|
-misc-unused-parameters,
|
2024-12-02 23:29:45 +01:00
|
|
|
-misc-use-anonymous-namespace,
|
2021-09-13 18:55:04 +02:00
|
|
|
-modernize-avoid-bind,
|
2024-11-26 00:41:27 +01:00
|
|
|
-modernize-avoid-c-arrays,
|
2021-09-13 18:55:04 +02:00
|
|
|
-modernize-concat-nested-namespaces,
|
2024-12-02 23:29:45 +01:00
|
|
|
-modernize-macro-to-enum,
|
2019-04-17 12:06:00 +02:00
|
|
|
-modernize-return-braced-init-list,
|
2024-12-02 23:29:45 +01:00
|
|
|
-modernize-type-traits,
|
2019-04-17 12:06:00 +02:00
|
|
|
-modernize-use-auto,
|
2024-12-02 23:29:45 +01:00
|
|
|
-modernize-use-constraints,
|
2019-04-17 12:06:00 +02:00
|
|
|
-modernize-use-default-member-init,
|
|
|
|
-modernize-use-equals-default,
|
2021-09-13 18:55:04 +02:00
|
|
|
-modernize-use-nodiscard,
|
2024-11-26 00:41:27 +01:00
|
|
|
-modernize-use-nullptr,
|
2024-12-02 23:29:45 +01:00
|
|
|
-modernize-use-nodiscard,
|
|
|
|
-modernize-use-nullptr,
|
2024-11-26 00:41:27 +01:00
|
|
|
-modernize-use-trailing-return-type,
|
2019-04-17 12:06:00 +02:00
|
|
|
-mpi-*,
|
|
|
|
-objc-*,
|
2024-12-02 23:29:45 +01:00
|
|
|
-performance-enum-size,
|
|
|
|
-readability-avoid-nested-conditional-operator,
|
|
|
|
-readability-container-contains,
|
2023-07-30 21:44:56 +02:00
|
|
|
-readability-container-data-pointer,
|
2021-06-08 22:16:17 +02:00
|
|
|
-readability-convert-member-functions-to-static,
|
2019-04-17 12:06:00 +02:00
|
|
|
-readability-else-after-return,
|
2021-09-13 09:35:55 +02:00
|
|
|
-readability-function-cognitive-complexity,
|
2019-04-17 12:06:00 +02:00
|
|
|
-readability-implicit-bool-conversion,
|
2021-06-08 22:16:17 +02:00
|
|
|
-readability-isolate-declaration,
|
|
|
|
-readability-magic-numbers,
|
|
|
|
-readability-make-member-function-const,
|
2024-11-26 00:41:27 +01:00
|
|
|
-readability-named-parameter,
|
2024-12-02 23:29:45 +01:00
|
|
|
-readability-redundant-casting,
|
|
|
|
-readability-redundant-inline-specifier,
|
|
|
|
-readability-redundant-member-init,
|
2021-06-08 22:16:17 +02:00
|
|
|
-readability-redundant-string-init,
|
|
|
|
-readability-uppercase-literal-suffix,
|
|
|
|
-readability-use-anyofallof,
|
2019-04-17 12:06:00 +02:00
|
|
|
WarningsAsErrors: '*'
|
|
|
|
FormatStyle: google
|
|
|
|
CheckOptions:
|
|
|
|
- key: google-readability-function-size.StatementThreshold
|
|
|
|
value: '800'
|
2021-11-28 19:59:30 +01:00
|
|
|
- key: google-runtime-int.TypeSuffix
|
|
|
|
value: '_t'
|
2021-12-01 05:21:19 +01:00
|
|
|
- key: llvm-namespace-comment.ShortNamespaceLines
|
|
|
|
value: '10'
|
|
|
|
- key: llvm-namespace-comment.SpacesBeforeComments
|
|
|
|
value: '2'
|
2019-04-17 12:06:00 +02:00
|
|
|
- key: modernize-loop-convert.MaxCopySize
|
|
|
|
value: '16'
|
|
|
|
- key: modernize-loop-convert.MinConfidence
|
|
|
|
value: reasonable
|
|
|
|
- key: modernize-loop-convert.NamingStyle
|
|
|
|
value: CamelCase
|
|
|
|
- key: modernize-pass-by-value.IncludeStyle
|
|
|
|
value: llvm
|
|
|
|
- key: modernize-replace-auto-ptr.IncludeStyle
|
|
|
|
value: llvm
|
|
|
|
- key: modernize-use-nullptr.NullMacros
|
|
|
|
value: 'NULL'
|
2021-09-14 14:27:35 +02:00
|
|
|
- key: modernize-make-unique.MakeSmartPtrFunction
|
|
|
|
value: 'make_unique'
|
|
|
|
- key: modernize-make-unique.MakeSmartPtrFunctionHeader
|
|
|
|
value: 'esphome/core/helpers.h'
|
2022-01-24 20:56:36 +01:00
|
|
|
- key: readability-braces-around-statements.ShortStatementLines
|
|
|
|
value: 2
|
2019-04-17 12:06:00 +02:00
|
|
|
- key: readability-identifier-naming.LocalVariableCase
|
|
|
|
value: 'lower_case'
|
|
|
|
- key: readability-identifier-naming.ClassCase
|
|
|
|
value: 'CamelCase'
|
|
|
|
- key: readability-identifier-naming.StructCase
|
|
|
|
value: 'CamelCase'
|
|
|
|
- key: readability-identifier-naming.EnumCase
|
|
|
|
value: 'CamelCase'
|
|
|
|
- key: readability-identifier-naming.EnumConstantCase
|
|
|
|
value: 'UPPER_CASE'
|
|
|
|
- key: readability-identifier-naming.StaticConstantCase
|
|
|
|
value: 'UPPER_CASE'
|
|
|
|
- key: readability-identifier-naming.StaticVariableCase
|
2021-09-13 18:11:27 +02:00
|
|
|
value: 'lower_case'
|
2019-04-17 12:06:00 +02:00
|
|
|
- key: readability-identifier-naming.GlobalConstantCase
|
|
|
|
value: 'UPPER_CASE'
|
|
|
|
- key: readability-identifier-naming.ParameterCase
|
|
|
|
value: 'lower_case'
|
2021-09-24 18:02:28 +02:00
|
|
|
- key: readability-identifier-naming.PrivateMemberCase
|
|
|
|
value: 'lower_case'
|
|
|
|
- key: readability-identifier-naming.PrivateMemberSuffix
|
|
|
|
value: '_'
|
|
|
|
- key: readability-identifier-naming.PrivateMethodCase
|
|
|
|
value: 'lower_case'
|
|
|
|
- key: readability-identifier-naming.PrivateMethodSuffix
|
|
|
|
value: '_'
|
2019-04-17 12:06:00 +02:00
|
|
|
- key: readability-identifier-naming.ClassMemberCase
|
|
|
|
value: 'lower_case'
|
|
|
|
- key: readability-identifier-naming.ClassMemberCase
|
|
|
|
value: 'lower_case'
|
|
|
|
- key: readability-identifier-naming.ProtectedMemberCase
|
|
|
|
value: 'lower_case'
|
|
|
|
- key: readability-identifier-naming.ProtectedMemberSuffix
|
|
|
|
value: '_'
|
|
|
|
- key: readability-identifier-naming.FunctionCase
|
|
|
|
value: 'lower_case'
|
|
|
|
- key: readability-identifier-naming.ClassMethodCase
|
|
|
|
value: 'lower_case'
|
|
|
|
- key: readability-identifier-naming.ProtectedMethodCase
|
|
|
|
value: 'lower_case'
|
|
|
|
- key: readability-identifier-naming.ProtectedMethodSuffix
|
|
|
|
value: '_'
|
|
|
|
- key: readability-identifier-naming.VirtualMethodCase
|
|
|
|
value: 'lower_case'
|
|
|
|
- key: readability-identifier-naming.VirtualMethodSuffix
|
|
|
|
value: ''
|
2022-01-23 08:29:58 +01:00
|
|
|
- key: readability-qualified-auto.AddConstToQualified
|
|
|
|
value: 0
|
2023-07-30 21:44:56 +02:00
|
|
|
- key: readability-identifier-length.MinimumVariableNameLength
|
|
|
|
value: 0
|
|
|
|
- key: readability-identifier-length.MinimumParameterNameLength
|
|
|
|
value: 0
|
|
|
|
- key: readability-identifier-length.MinimumLoopCounterNameLength
|
|
|
|
value: 0
|