63 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			63 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
---
 | 
						|
Checks: '*,-cert-dcl21-cpp,-cert-err60-cpp,-clang-analyzer-core.CallAndMessage,-cppcoreguidelines-avoid-magic-numbers,-cppcoreguidelines-non-private-member-variables-in-classes,-cppcoreguidelines-owning-memory,-cppcoreguidelines-pro-bounds-array-to-pointer-decay,-cppcoreguidelines-pro-bounds-pointer-arithmetic,-fuchsia-*,-google-runtime-references,-hicpp-no-array-decay,-hicpp-vararg,-misc-non-private-member-variables-in-classes,-modernize-use-trailing-return-type,-readability-avoid-const-params-in-decls,-readability-implicit-bool-cast,-readability-implicit-bool-conversion,-readability-magic-numbers'
 | 
						|
#
 | 
						|
#  Disabled checks:
 | 
						|
#
 | 
						|
#  cert-dcl21-cpp
 | 
						|
#    It is unclear whether this is still a good recommendation in modern C++.
 | 
						|
#
 | 
						|
#  cert-err60-cpp
 | 
						|
#    Reports std::runtime_error as broken which we can't do anything about.
 | 
						|
#
 | 
						|
#  clang-analyzer-core.CallAndMessage
 | 
						|
#    Produces false positives
 | 
						|
#
 | 
						|
#  cppcoreguidelines-avoid-magic-numbers
 | 
						|
#  readability-magic-numbers
 | 
						|
#    Not wrong, but many tests just have those
 | 
						|
#
 | 
						|
#  cppcoreguidelines-non-private-member-variables-in-classes
 | 
						|
#  misc-non-private-member-variables-in-classes
 | 
						|
#    Can be useful, we use it for some mock classes in tests for instance
 | 
						|
#
 | 
						|
#  cppcoreguidelines-owning-memory
 | 
						|
#    Don't want to add dependency on gsl library.
 | 
						|
#
 | 
						|
#  cppcoreguidelines-pro-bounds-array-to-pointer-decay
 | 
						|
#    Limited use and many false positives including for all asserts.
 | 
						|
#
 | 
						|
#  cppcoreguidelines-pro-bounds-pointer-arithmetic
 | 
						|
#    This is a low-level library, it needs to do pointer arithmetic.
 | 
						|
#
 | 
						|
#  fuchsia-*
 | 
						|
#    Much too strict.
 | 
						|
#
 | 
						|
#  google-runtime-references
 | 
						|
#    This is just a matter of preference, and we can't change the interfaces
 | 
						|
#    now anyways.
 | 
						|
#
 | 
						|
#  hicpp-no-array-decay
 | 
						|
#    Limited use and many false positives including for all asserts.
 | 
						|
#
 | 
						|
#  hicpp-vararg
 | 
						|
#    False positives from Catch2
 | 
						|
#
 | 
						|
#  modernize-use-trailing-return-type
 | 
						|
#    We are not that modern.
 | 
						|
#
 | 
						|
#  readability-avoid-const-params-in-decls
 | 
						|
#    Inconsistently complaines about some cases but not others. It is nice
 | 
						|
#    to have const in parameters if we don't change them just like with any
 | 
						|
#    other variables.
 | 
						|
#
 | 
						|
#  readability-implicit-bool-cast
 | 
						|
#    Old name for readability-implicit-bool-conversion.
 | 
						|
#
 | 
						|
#  readability-implicit-bool-conversion
 | 
						|
#    I don't think this makes the code more readable.
 | 
						|
#
 | 
						|
WarningsAsErrors: '*'
 | 
						|
HeaderFilterRegex: '\/include\/'
 | 
						|
AnalyzeTemporaryDtors: false
 | 
						|
...
 |