|
| 1 | +# Copyright 2019 Google LLC |
| 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 | +# Configure clang-tidy for this project. |
| 17 | + |
| 18 | +# Disabled: |
| 19 | +# -google-readability-namespace-comments the *_CLIENT_NS is a macro, and |
| 20 | +# clang-tidy fails to match it against the initial value. |
| 21 | +Checks: > |
| 22 | + -*, |
| 23 | + bugprone-*, |
| 24 | + google-*, |
| 25 | + misc-*, |
| 26 | + modernize-*, |
| 27 | + performance-*, |
| 28 | + portability-*, |
| 29 | + readability-*, |
| 30 | + -modernize-use-trailing-return-type, |
| 31 | + -bugprone-implicit-widening-of-multiplication-result, |
| 32 | + -modernize-avoid-c-arrays, |
| 33 | + -readability-identifier-length, |
| 34 | + -misc-non-private-member-variables-in-classes, |
| 35 | +
|
| 36 | +# -google-readability-namespace-comments, |
| 37 | +# -google-runtime-int, |
| 38 | +# -google-runtime-references, |
| 39 | +# -misc-non-private-member-variables-in-classes, |
| 40 | +# -readability-named-parameter, |
| 41 | +# -readability-braces-around-statements, |
| 42 | +# -readability-magic-numbers, |
| 43 | +# |
| 44 | +# Turn all the warnings from the checks above into errors. |
| 45 | +WarningsAsErrors: "*" |
| 46 | + |
| 47 | +CheckOptions: |
| 48 | + - { key: readability-identifier-naming.NamespaceCase, value: lower_case } |
| 49 | + - { key: readability-identifier-naming.ClassCase, value: CamelCase } |
| 50 | + - { key: readability-identifier-naming.StructCase, value: CamelCase } |
| 51 | + - { key: readability-identifier-naming.TemplateParameterCase, value: CamelCase } |
| 52 | + - { key: readability-identifier-naming.FunctionCase, value: lower_case } |
| 53 | + - { key: readability-identifier-naming.VariableCase, value: lower_case } |
| 54 | + - { key: readability-identifier-naming.PrivateMemberPrefix, value: _ } |
| 55 | + - { key: readability-identifier-naming.ProtectedMemberPrefix, value: _ } |
| 56 | + - { key: readability-identifier-naming.MacroDefinitionCase, value: UPPER_CASE } |
| 57 | + - { key: readability-identifier-naming.EnumConstantCase, value: CamelCase } |
| 58 | + - { key: readability-identifier-naming.EnumConstantPrefix, value: k } |
| 59 | + - { key: readability-identifier-naming.ConstexprVariableCase, value: CamelCase } |
| 60 | + - { key: readability-identifier-naming.ConstexprVariablePrefix, value: k } |
| 61 | + - { key: readability-identifier-naming.GlobalConstantCase, value: UPPER_CASE } |
| 62 | + - { key: readability-identifier-naming.MemberConstantCase, value: CamelCase } |
| 63 | + - { key: readability-identifier-naming.MemberConstantPrefix, value: k } |
| 64 | + - { key: readability-identifier-naming.StaticConstantCase, value: CamelCase } |
| 65 | + - { key: readability-identifier-naming.StaticConstantPrefix, value: k } |
0 commit comments