|
| 1 | +# Licensed to the Apache Software Foundation (ASF) under one |
| 2 | +# or more contributor license agreements. See the NOTICE file |
| 3 | +# distributed with this work for additional information |
| 4 | +# regarding copyright ownership. The ASF licenses this file |
| 5 | +# to you under the Apache License, Version 2.0 (the |
| 6 | +# "License"); you may not use this file except in compliance |
| 7 | +# with the License. You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, |
| 12 | +# software distributed under the License is distributed on an |
| 13 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 14 | +# KIND, either express or implied. See the License for the |
| 15 | +# specific language governing permissions and limitations |
| 16 | +# under the License. |
| 17 | + |
| 18 | +# The checks defined here will be run and will display by default as warnings. |
| 19 | +Checks: > |
| 20 | + -*, clang-diagnostic-*, -clang-diagnostic-error, |
| 21 | + clang-analyzer-*, -clang-analyzer-alpha*, |
| 22 | + google-*, -google-runtime-references, -google-readability-todo, |
| 23 | + modernize-*, -modernize-pass-by-value, -modernize-use-equals-default, |
| 24 | + performance-faster-string-find, performance-for-range-copy, |
| 25 | + performance-implicit-conversion-in-loop, performance-inefficient-algorithm, |
| 26 | + performance-trivially-destructible, performance-inefficient-vector-operation, |
| 27 | + performance-move-const-arg, performance-move-constructor-init, |
| 28 | + performance-noexcept-move-constructor, performance-no-automatic-move, |
| 29 | + performance-type-promotion-in-math-fn |
| 30 | +
|
| 31 | +# produce HeaderFilterRegex from core/build-support/lint_exclusions.txt with: |
| 32 | +# echo -n '^?!('; sed -e 's/*/\.*/g' core/build-support/lint_exclusions.txt | tr '\n' '|'; echo ')$' |
| 33 | +HeaderFilterRegex: '^?!(.*cmake-build-debug.*|.*cmake-build-release.*|.*cmake_build.*|.*thirdparty.*|.*src/grpc.*|.*output.*|.*unittest.*|.*src/pb.*)$' |
| 34 | +AnalyzeTemporaryDtors: true |
| 35 | +CheckOptions: |
| 36 | + - key: google-readability-braces-around-statements.ShortStatementLines |
| 37 | + value: '1' |
| 38 | + - key: google-readability-function-size.StatementThreshold |
| 39 | + value: '800' |
| 40 | + - key: google-readability-namespace-comments.ShortNamespaceLines |
| 41 | + value: '10' |
| 42 | + - key: google-readability-namespace-comments.SpacesBeforeComments |
| 43 | + value: '2' |
0 commit comments