| 1 |
--- |
| 2 |
# Note on checks are disabled on purpose |
| 3 |
# |
| 4 |
# - abseil-no-namespace |
| 5 |
# https://bugs.llvm.org/show_bug.cgi?id=47947 |
| 6 |
# |
| 7 |
# - bugprone-reserved-identifier |
| 8 |
# Some macros need to be defined for portability purpose; e.g. _BSD_SOURCE. |
| 9 |
# |
| 10 |
# - google-upgrade-googletest-case |
| 11 |
# This requires googletest 1.10 which is higher than ones installed on many linux distributions. |
| 12 |
# |
| 13 |
# - modernize-redundant-void-arg |
| 14 |
# Some source should be strictly C99 and func(void) should be used. |
| 15 |
# |
| 16 |
# Note on checks which will be enabled in future. These are good to have but |
| 17 |
# it's not activated yet due to the existing issues with the checks. |
| 18 |
# Once those issues are clear, these checks can be enabled later. |
| 19 |
# |
| 20 |
# - bugprone-assignment-in-if-condition |
| 21 |
# - bugprone-branch-clone |
| 22 |
# - bugprone-easily-swappable-parameters |
| 23 |
# - bugprone-implicit-widening-of-multiplication-result |
| 24 |
# - bugprone-infinite-loop |
| 25 |
# - bugprone-narrowing-conversions |
| 26 |
# - bugprone-not-null-terminated-result |
| 27 |
# - bugprone-signed-char-misuse |
| 28 |
# - bugprone-sizeof-expression |
| 29 |
# - bugprone-too-small-loop-variable |
| 30 |
# - bugprone-unchecked-optional-access |
| 31 |
# - clang-diagnostic-deprecated-declarations |
| 32 |
# - clang-diagnostic-unused-function |
| 33 |
# - google-readability-avoid-underscore-in-googletest-name |
| 34 |
# - google-readability-casting |
| 35 |
# - google-runtime-int |
| 36 |
# - google-runtime-references |
| 37 |
# - modernize-avoid-bind |
| 38 |
# - modernize-deprecated-headers |
| 39 |
# - modernize-loop-convert |
| 40 |
# - modernize-pass-by-value |
| 41 |
# - modernize-raw-string-literal |
| 42 |
# - modernize-return-braced-init-list |
| 43 |
# - modernize-use-auto |
| 44 |
# - modernize-use-default-member-init |
| 45 |
# - modernize-use-emplace |
| 46 |
# - modernize-use-equals-default |
| 47 |
# - modernize-use-equals-delete |
| 48 |
# - modernize-use-using |
| 49 |
# - performance-no-automatic-move |
| 50 |
# - performance-no-int-to-ptr |
| 51 |
# - performance-unnecessary-copy-initialization |
| 52 |
# - performance-unnecessary-value-param |
| 53 |
# - readability-else-after-return |
| 54 |
# - readability-implicit-bool-conversion |
| 55 |
# - readability-redundant-declaration |
| 56 |
# |
| 57 |
Checks: '-*, |
| 58 |
abseil-*, |
| 59 |
-abseil-no-namespace, |
| 60 |
bugprone-*, |
| 61 |
-bugprone-assignment-in-if-condition, |
| 62 |
-bugprone-branch-clone, |
| 63 |
-bugprone-easily-swappable-parameters, |
| 64 |
-bugprone-implicit-widening-of-multiplication-result, |
| 65 |
-bugprone-infinite-loop, |
| 66 |
-bugprone-narrowing-conversions, |
| 67 |
-bugprone-not-null-terminated-result, |
| 68 |
-bugprone-reserved-identifier, |
| 69 |
-bugprone-signed-char-misuse, |
| 70 |
-bugprone-sizeof-expression, |
| 71 |
-bugprone-too-small-loop-variable, |
| 72 |
-bugprone-unchecked-optional-access, |
| 73 |
google-*, |
| 74 |
-google-readability-avoid-underscore-in-googletest-name, |
| 75 |
-google-readability-casting, |
| 76 |
-google-runtime-int, |
| 77 |
-google-runtime-references, |
| 78 |
-google-upgrade-googletest-case, |
| 79 |
performance-*, |
| 80 |
-performance-no-automatic-move, |
| 81 |
-performance-no-int-to-ptr, |
| 82 |
-performance-unnecessary-copy-initialization, |
| 83 |
-performance-unnecessary-value-param, |
| 84 |
clang-diagnostic-deprecated-register, |
| 85 |
clang-diagnostic-expansion-to-defined, |
| 86 |
clang-diagnostic-ignored-attributes, |
| 87 |
clang-diagnostic-non-pod-varargs, |
| 88 |
clang-diagnostic-shadow-field, |
| 89 |
clang-diagnostic-shift-sign-overflow, |
| 90 |
clang-diagnostic-tautological-undefined-compare, |
| 91 |
clang-diagnostic-thread-safety*, |
| 92 |
clang-diagnostic-undefined-bool-conversion, |
| 93 |
clang-diagnostic-unreachable-code, |
| 94 |
clang-diagnostic-unreachable-code-loop-increment, |
| 95 |
clang-diagnostic-unused-const-variable, |
| 96 |
clang-diagnostic-unused-lambda-capture, |
| 97 |
clang-diagnostic-unused-local-typedef, |
| 98 |
clang-diagnostic-unused-private-field, |
| 99 |
clang-diagnostic-user-defined-warnings, |
| 100 |
misc-definitions-in-headers, |
| 101 |
misc-static-assert, |
| 102 |
misc-unconventional-assign-operator, |
| 103 |
misc-uniqueptr-reset-release, |
| 104 |
misc-unused-alias-decls, |
| 105 |
misc-unused-using-decls, |
| 106 |
modernize-make-shared, |
| 107 |
modernize-make-unique, |
| 108 |
modernize-replace-auto-ptr, |
| 109 |
modernize-replace-random-shuffle, |
| 110 |
modernize-shrink-to-fit, |
| 111 |
modernize-unary-static-assert, |
| 112 |
modernize-use-bool-literals, |
| 113 |
modernize-use-noexcept, |
| 114 |
modernize-use-nullptr, |
| 115 |
modernize-use-override, |
| 116 |
modernize-use-transparent-functors, |
| 117 |
readability-const-return-type, |
| 118 |
readability-container-size-empty, |
| 119 |
readability-delete-null-pointer, |
| 120 |
readability-deleted-default, |
| 121 |
readability-function-size, |
| 122 |
readability-inconsistent-declaration-parameter-name, |
| 123 |
readability-misleading-indentation, |
| 124 |
readability-misplaced-array-index, |
| 125 |
readability-redundant-control-flow, |
| 126 |
readability-redundant-function-ptr-dereference, |
| 127 |
readability-redundant-smartptr-get, |
| 128 |
readability-simplify-boolean-expr, |
| 129 |
readability-static-definition-in-anonymous-namespace, |
| 130 |
readability-string-compare, |
| 131 |
readability-uniqueptr-delete-release' |
| 132 |
WarningsAsErrors: '*' |
| 133 |
CheckOptions: |
| 134 |
- key: readability-function-size.StatementThreshold |
| 135 |
value: '450' |
| 136 |
- key: modernize-make-unique.MakeSmartPtrFunction |
| 137 |
value: 'absl::make_unique' |
| 138 |
- key: modernize-make-unique.MakeSmartPtrFunctionHeader |
| 139 |
value: 'absl/memory/memory.h' |
| 140 |
- key: google-readability-braces-around-statements.ShortStatementLines |
| 141 |
value: 1 |
| 142 |
- key: readability-simplify-boolean-expr.SimplifyDeMorgan |
| 143 |
value: false |