You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

127 lines
5.0 KiB

  1. ---
  2. Checks: >-
  3. *,
  4. -abseil-*,
  5. -android-*,
  6. -boost-*,
  7. -bugprone-macro-parentheses,
  8. -cert-dcl50-cpp,
  9. -cert-err58-cpp,
  10. -clang-analyzer-core.CallAndMessage,
  11. -clang-analyzer-osx.*,
  12. -clang-analyzer-security.*,
  13. -cppcoreguidelines-avoid-goto,
  14. -cppcoreguidelines-c-copy-assignment-signature,
  15. -cppcoreguidelines-owning-memory,
  16. -cppcoreguidelines-pro-bounds-array-to-pointer-decay,
  17. -cppcoreguidelines-pro-bounds-constant-array-index,
  18. -cppcoreguidelines-pro-bounds-pointer-arithmetic,
  19. -cppcoreguidelines-pro-type-const-cast,
  20. -cppcoreguidelines-pro-type-cstyle-cast,
  21. -cppcoreguidelines-pro-type-member-init,
  22. -cppcoreguidelines-pro-type-reinterpret-cast,
  23. -cppcoreguidelines-pro-type-static-cast-downcast,
  24. -cppcoreguidelines-pro-type-union-access,
  25. -cppcoreguidelines-pro-type-vararg,
  26. -cppcoreguidelines-special-member-functions,
  27. -fuchsia-*,
  28. -fuchsia-default-arguments,
  29. -fuchsia-multiple-inheritance,
  30. -fuchsia-overloaded-operator,
  31. -fuchsia-statically-constructed-objects,
  32. -google-build-using-namespace,
  33. -google-explicit-constructor,
  34. -google-readability-braces-around-statements,
  35. -google-readability-casting,
  36. -google-readability-todo,
  37. -google-runtime-int,
  38. -google-runtime-references,
  39. -hicpp-*,
  40. -llvm-header-guard,
  41. -llvm-include-order,
  42. -misc-unconventional-assign-operator,
  43. -misc-unused-parameters,
  44. -modernize-deprecated-headers,
  45. -modernize-pass-by-value,
  46. -modernize-pass-by-value,
  47. -modernize-return-braced-init-list,
  48. -modernize-use-auto,
  49. -modernize-use-default-member-init,
  50. -modernize-use-equals-default,
  51. -mpi-*,
  52. -objc-*,
  53. -performance-unnecessary-value-param,
  54. -readability-braces-around-statements,
  55. -readability-else-after-return,
  56. -readability-implicit-bool-conversion,
  57. -readability-named-parameter,
  58. -readability-redundant-member-init,
  59. -warnings-as-errors,
  60. -zircon-*
  61. WarningsAsErrors: '*'
  62. HeaderFilterRegex: '^.*/src/esphome/.*'
  63. AnalyzeTemporaryDtors: false
  64. FormatStyle: google
  65. CheckOptions:
  66. - key: google-readability-braces-around-statements.ShortStatementLines
  67. value: '1'
  68. - key: google-readability-function-size.StatementThreshold
  69. value: '800'
  70. - key: google-readability-namespace-comments.ShortNamespaceLines
  71. value: '10'
  72. - key: google-readability-namespace-comments.SpacesBeforeComments
  73. value: '2'
  74. - key: modernize-loop-convert.MaxCopySize
  75. value: '16'
  76. - key: modernize-loop-convert.MinConfidence
  77. value: reasonable
  78. - key: modernize-loop-convert.NamingStyle
  79. value: CamelCase
  80. - key: modernize-pass-by-value.IncludeStyle
  81. value: llvm
  82. - key: modernize-replace-auto-ptr.IncludeStyle
  83. value: llvm
  84. - key: modernize-use-nullptr.NullMacros
  85. value: 'NULL'
  86. - key: readability-identifier-naming.LocalVariableCase
  87. value: 'lower_case'
  88. - key: readability-identifier-naming.ClassCase
  89. value: 'CamelCase'
  90. - key: readability-identifier-naming.StructCase
  91. value: 'CamelCase'
  92. - key: readability-identifier-naming.EnumCase
  93. value: 'CamelCase'
  94. - key: readability-identifier-naming.EnumConstantCase
  95. value: 'UPPER_CASE'
  96. - key: readability-identifier-naming.StaticConstantCase
  97. value: 'UPPER_CASE'
  98. - key: readability-identifier-naming.StaticVariableCase
  99. value: 'UPPER_CASE'
  100. - key: readability-identifier-naming.GlobalConstantCase
  101. value: 'UPPER_CASE'
  102. - key: readability-identifier-naming.ParameterCase
  103. value: 'lower_case'
  104. - key: readability-identifier-naming.PrivateMemberPrefix
  105. value: 'NO_PRIVATE_MEMBERS_ALWAYS_USE_PROTECTED'
  106. - key: readability-identifier-naming.PrivateMethodPrefix
  107. value: 'NO_PRIVATE_METHODS_ALWAYS_USE_PROTECTED'
  108. - key: readability-identifier-naming.ClassMemberCase
  109. value: 'lower_case'
  110. - key: readability-identifier-naming.ClassMemberCase
  111. value: 'lower_case'
  112. - key: readability-identifier-naming.ProtectedMemberCase
  113. value: 'lower_case'
  114. - key: readability-identifier-naming.ProtectedMemberSuffix
  115. value: '_'
  116. - key: readability-identifier-naming.FunctionCase
  117. value: 'lower_case'
  118. - key: readability-identifier-naming.ClassMethodCase
  119. value: 'lower_case'
  120. - key: readability-identifier-naming.ProtectedMethodCase
  121. value: 'lower_case'
  122. - key: readability-identifier-naming.ProtectedMethodSuffix
  123. value: '_'
  124. - key: readability-identifier-naming.VirtualMethodCase
  125. value: 'lower_case'
  126. - key: readability-identifier-naming.VirtualMethodSuffix
  127. value: ''