mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	Activate some clang-tidy checks (#1884)
This commit is contained in:
		
							
								
								
									
										24
									
								
								.clang-tidy
									
									
									
									
									
								
							
							
						
						
									
										24
									
								
								.clang-tidy
									
									
									
									
									
								
							| @@ -5,30 +5,20 @@ Checks: >- | ||||
|   -android-*, | ||||
|   -boost-*, | ||||
|   -bugprone-branch-clone, | ||||
|   -bugprone-macro-parentheses, | ||||
|   -bugprone-narrowing-conversions, | ||||
|   -bugprone-reserved-identifier, | ||||
|   -bugprone-signed-char-misuse, | ||||
|   -bugprone-suspicious-include, | ||||
|   -bugprone-too-small-loop-variable, | ||||
|   -bugprone-unhandled-self-assignment, | ||||
|   -cert-dcl37-c, | ||||
|   -cert-dcl50-cpp, | ||||
|   -cert-dcl51-cpp, | ||||
|   -cert-err58-cpp, | ||||
|   -cert-oop54-cpp, | ||||
|   -cert-oop57-cpp, | ||||
|   -cert-str34-c, | ||||
|   -clang-analyzer-core.CallAndMessage, | ||||
|   -clang-analyzer-optin.*, | ||||
|   -clang-analyzer-optin.cplusplus.UninitializedObject, | ||||
|   -clang-analyzer-osx.*, | ||||
|   -clang-analyzer-security.*, | ||||
|   -clang-diagnostic-shadow-field, | ||||
|   -cppcoreguidelines-avoid-c-arrays, | ||||
|   -cppcoreguidelines-avoid-goto, | ||||
|   -cppcoreguidelines-avoid-magic-numbers, | ||||
|   -cppcoreguidelines-avoid-non-const-global-variables, | ||||
|   -cppcoreguidelines-c-copy-assignment-signature, | ||||
|   -cppcoreguidelines-init-variables, | ||||
|   -cppcoreguidelines-macro-usage, | ||||
|   -cppcoreguidelines-narrowing-conversions, | ||||
| @@ -45,17 +35,17 @@ Checks: >- | ||||
|   -cppcoreguidelines-pro-type-union-access, | ||||
|   -cppcoreguidelines-pro-type-vararg, | ||||
|   -cppcoreguidelines-special-member-functions, | ||||
|   -fuchsia-*, | ||||
|   -fuchsia-default-arguments, | ||||
|   -fuchsia-multiple-inheritance, | ||||
|   -fuchsia-overloaded-operator, | ||||
|   -fuchsia-statically-constructed-objects, | ||||
|   -fuchsia-default-arguments-declarations, | ||||
|   -fuchsia-default-arguments-calls, | ||||
|   -google-build-using-namespace, | ||||
|   -google-explicit-constructor, | ||||
|   -google-readability-braces-around-statements, | ||||
|   -google-readability-casting, | ||||
|   -google-readability-todo, | ||||
|   -google-runtime-int, | ||||
|   -google-runtime-references, | ||||
|   -hicpp-*, | ||||
|   -llvm-else-after-return, | ||||
| @@ -65,12 +55,8 @@ Checks: >- | ||||
|   -llvmlibc-*, | ||||
|   -misc-non-private-member-variables-in-classes, | ||||
|   -misc-no-recursion, | ||||
|   -misc-unconventional-assign-operator, | ||||
|   -misc-unused-parameters, | ||||
|   -modernize-avoid-c-arrays, | ||||
|   -modernize-deprecated-headers, | ||||
|   -modernize-pass-by-value, | ||||
|   -modernize-pass-by-value, | ||||
|   -modernize-return-braced-init-list, | ||||
|   -modernize-use-auto, | ||||
|   -modernize-use-default-member-init, | ||||
| @@ -78,7 +64,6 @@ Checks: >- | ||||
|   -modernize-use-trailing-return-type, | ||||
|   -mpi-*, | ||||
|   -objc-*, | ||||
|   -performance-unnecessary-value-param, | ||||
|   -readability-braces-around-statements, | ||||
|   -readability-const-return-type, | ||||
|   -readability-convert-member-functions-to-static, | ||||
| @@ -94,8 +79,7 @@ Checks: >- | ||||
|   -readability-redundant-string-init, | ||||
|   -readability-uppercase-literal-suffix, | ||||
|   -readability-use-anyofallof, | ||||
|   -warnings-as-errors, | ||||
|   -zircon-* | ||||
|   -warnings-as-errors | ||||
| WarningsAsErrors: '*' | ||||
| HeaderFilterRegex: '^.*/src/esphome/.*' | ||||
| AnalyzeTemporaryDtors: false | ||||
|   | ||||
		Reference in New Issue
	
	Block a user