|
| 1 | +# Copyright 2024-present Alibaba Inc. |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +--- |
| 16 | +Checks: | |
| 17 | + bugprone-argument-comment, |
| 18 | + bugprone-assert-side-effect, |
| 19 | + bugprone-bool-pointer-implicit-conversion, |
| 20 | + bugprone-dangling-handle, |
| 21 | + bugprone-dynamic-static-initializers, |
| 22 | + bugprone-forward-declaration-namespace, |
| 23 | + bugprone-inaccurate-erase, |
| 24 | + bugprone-redundant-branch-condition, |
| 25 | + bugprone-string-constructor, |
| 26 | + bugprone-string-integer-assignment, |
| 27 | + bugprone-suspicious-memset-usage, |
| 28 | + bugprone-suspicious-realloc-usage, |
| 29 | + bugprone-terminating-continue, |
| 30 | + bugprone-throwing-static-initialization, |
| 31 | + bugprone-unique-ptr-array-mismatch, |
| 32 | + bugprone-unused-raii, |
| 33 | + bugprone-use-after-move, |
| 34 | + bugprone-virtual-near-miss, |
| 35 | + misc-misleading-identifier, |
| 36 | + misc-homoglyph, |
| 37 | + clang-diagnostic-*, |
| 38 | + -clang-diagnostic-global-constructors, |
| 39 | + -clang-diagnostic-sign-compare, |
| 40 | + clang-analyzer-*, |
| 41 | + -clang-analyzer-alpha*, |
| 42 | + -clang-analyzer-cplusplus.NewDeleteLeaks, |
| 43 | + google-*, |
| 44 | + -google-default-arguments, |
| 45 | + modernize-*, |
| 46 | + -modernize-return-braced-init-list, |
| 47 | + -modernize-avoid-c-arrays, |
| 48 | + -modernize-use-trailing-return-type, |
| 49 | + -modernize-use-nodiscard, |
| 50 | + -modernize-pass-by-value, |
| 51 | +# produce HeaderFilterRegex from cpp/build-support/lint_exclusions.txt with: |
| 52 | +# echo -n '^('; sed -e 's/*/\.*/g' cpp/build-support/lint_exclusions.txt | tr '\n' '|'; echo ')$' |
| 53 | +HeaderFilterRegex: '^(?!.*third_party/).*' |
| 54 | +CheckOptions: |
| 55 | + - key: google-readability-braces-around-statements.ShortStatementLines |
| 56 | + value: '1' |
| 57 | + - key: google-readability-function-size.StatementThreshold |
| 58 | + value: '800' |
| 59 | + - key: google-readability-namespace-comments.ShortNamespaceLines |
| 60 | + value: '10' |
| 61 | + - key: google-readability-namespace-comments.SpacesBeforeComments |
| 62 | + value: '2' |
| 63 | + - key: modernize-use-emplace.IgnoreImplicitConstructors |
| 64 | + value: 1 |
0 commit comments