clang-linting-demo/.clang-tidy

169 lines
5.3 KiB
Plaintext
Raw Normal View History

2023-11-29 21:54:14 +01:00
---
FormatStyle: file
Checks: >-
android-cloexec-*
, boost-use-to-string
, bugprone-assert-side-effect
, bugprone-bad-signal-to-kill-thread
, bugprone-copy-constructor-init
, bugprone-dangling-handle
, bugprone-dynamic-static-initializers
, bugprone-easily-swappable-parameters
, bugprone-exception-escape
, bugprone-fold-init-type
, bugprone-forward-declaration-namespace
, bugprone-forwarding-reference-overload
, bugprone-inaccurate-erase
, bugprone-incorrect-roundings
, bugprone-infinite-loop
, bugprone-integer-division
, bugprone-lambda-function-name
, bugprone-macro-parentheses
, bugprone-macro-repeated-side-effects
, bugprone-misplaced-operator-in-strlen-in-alloc
, bugprone-misplaced-pointer-arithmetic-in-alloc
, bugprone-misplaced-widening-cast
, bugprone-move-forwarding-reference
, bugprone-multiple-statement-macro
, bugprone-not-null-terminated-result
, bugprone-parent-virtual-call
, bugprone-posix-return
, bugprone-redundant-branch-condition
, bugprone-reserved-identifier
, bugprone-signal-handler
, bugprone-sizeof-container
, bugprone-sizeof-expression
, bugprone-spuriously-wake-up-functions
, bugprone-string-constructor
, bugprone-string-integer-assignment
, bugprone-string-literal-with-embedded-nul
, bugprone-stringview-nullptr
, bugprone-suspicious-enum-usage
, bugprone-suspicious-memory-comparison
, bugprone-suspicious-memset-usage
, bugprone-suspicious-semicolon
, bugprone-suspicious-string-compare
, bugprone-swapped-arguments
, bugprone-throw-keyword-missing
, bugprone-undefined-memory-manipulation
, bugprone-undelegated-constructor
, bugprone-unhandled-self-assignment
, bugprone-unused-raii
, bugprone-unused-return-value
, bugprone-use-after-move
, cert-dcl58-cpp
, cert-env33-c
, cert-err33-c
, cert-err34-c
, cert-err58-cpp
, cert-err60-cpp
, cert-flp30-c
, cert-msc50-cpp
, cert-msc51-cpp
, cert-oop57-cpp
, cert-oop58-cpp
, concurrency-mt-unsafe
, cppcoreguidelines-avoid-goto
, cppcoreguidelines-avoid-non-const-global-variables
, clang-diagnostic-*
, clang-analyzer-*
, cppcoreguidelines-init-variables
, cppcoreguidelines-interfaces-global-init
, cppcoreguidelines-macro-usage
, cppcoreguidelines-narrowing-conversions
, cppcoreguidelines-pro-bounds-constant-array-index
, cppcoreguidelines-pro-type-const-cast
, cppcoreguidelines-pro-type-cstyle-cast
, cppcoreguidelines-slicing
, cppcoreguidelines-special-member-functions
, cppcoreguidelines-virtual-class-destructor
, google-build-namespaces
, google-build-using-namespace
, google-default-arguments
, google-explicit-constructor
, google-global-names-in-headers
, google-runtime-int
, google-runtime-operator
, hicpp-exception-baseclass
, misc-definitions-in-headers
, misc-misleading-bidirectional
, misc-misleading-identifier
, misc-misplaced-const
, misc-non-private-member-variables-in-classes
, misc-redundant-expression
, misc-static-assert
, misc-throw-by-value-catch-by-reference
, misc-unconventional-assign-operator
, misc-uniqueptr-reset-release
, misc-unused-parameters
, misc-unused-using-decls
, modernize-avoid-c-arrays
, modernize-concat-nested-namespaces
, modernize-deprecated-headers
, modernize-deprecated-ios-base-aliases
, modernize-loop-convert
, modernize-make-shared
, modernize-make-unique
, modernize-pass-by-value
, modernize-raw-string-literal
, modernize-redundant-void-arg
, modernize-return-braced-init-list
, modernize-shrink-to-fit
, modernize-unary-static-assert
, modernize-use-auto
, modernize-use-bool-literals
, modernize-use-default-member-init
, modernize-use-emplace
, modernize-use-equals-default
, modernize-use-equals-delete
, modernize-use-nodiscard
, modernize-use-noexcept
, modernize-use-nullptr
, modernize-use-override
, modernize-use-trailing-return-type
, modernize-use-transparent-functors
, modernize-use-uncaught-exceptions
, modernize-use-using
, readability-braces-around-statements
, readability-function-size
, readability-non-const-parameter
, readability-magic-numbers
, readability-redundant-string-init
, readability-simplify-boolean-expr
, readability-static-accessed-through-instance
, readability-string-compare
, readability-uniqueptr-delete-release
, readability-use-anyofallof
# - ONE DAY... cppcoreguidelines-avoid-non-const-global-variables
WarningsAsErrors: >-
cppcoreguidelines-init-variables
, cppcoreguidelines-interfaces-global-init
, cppcoreguidelines-pro-type-cstyle-cast
, cppcoreguidelines-slicing
, cppcoreguidelines-virtual-class-destructor
, google-explicit-constructor
, google-runtime-operator
, misc-definitions-in-headers
, misc-misleading-bidirectional
, misc-misleading-identifier
, misc-non-private-member-variables-in-classes
, misc-throw-by-value-catch-by-reference
, misc-unconventional-assign-operator
, readability-braces-around-statements
2023-11-29 21:54:14 +01:00
HeaderFilterRegex: ''
FormatStyle: file:.clang-format
2023-11-29 21:54:14 +01:00
CheckOptions:
- key: readability-function-size.StatementThreshold
value: '60'
- key: readability-function-size.BranchThreshold
value: '15'
- key: readability-function-size.VariableThreshold
value: '15'
- key: readability-function-size.ParameterThreshold
value: '7'
2023-11-29 21:54:14 +01:00
...