• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-2022 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6# http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13---
14# Note well! The list of global exceptions is maintained in cmake/ClangTidy.cmake
15WarningsAsErrors: '*'
16HeaderFilterRegex: '.*/(assembler|compiler|debugger|libpandabase|libpandafile|runtime|class2panda)/.*'
17AnalyzeTemporaryDtors: false
18User:            user
19CheckOptions:
20  - key:             google-readability-braces-around-statements.ShortStatementLines
21    value:           '1'
22  - key:             google-readability-function-size.StatementThreshold
23    value:           '800'
24  - key:             google-readability-namespace-comments.ShortNamespaceLines
25    value:           '10'
26  - key:             google-readability-namespace-comments.SpacesBeforeComments
27    value:           '2'
28  - key:             modernize-loop-convert.MaxCopySize
29    value:           '16'
30  - key:             modernize-loop-convert.MinConfidence
31    value:           reasonable
32  - key:             modernize-loop-convert.NamingStyle
33    value:           CamelCase
34  - key:             modernize-pass-by-value.IncludeStyle
35    value:           llvm
36  - key:             modernize-replace-auto-ptr.IncludeStyle
37    value:           llvm
38  - key:             modernize-use-nullptr.NullMacros
39    value:           'NULL'
40  - key:             readability-identifier-naming.ClassMethodCase
41    value:           CamelCase
42  - key:             readability-identifier-naming.MethodCase
43    value:           CamelCase
44  - key:             readability-identifier-naming.EnumConstantCase
45    value:           UPPER_CASE
46  - key:             readability-identifier-naming.ConstantCase
47    value:           UPPER_CASE
48  - key:             readability-identifier-naming.ConstantMemberCase
49    value:           UPPER_CASE
50  - key:             readability-function-size.LineThreshold
51    value:           200
52  - key:             readability-identifier-naming.NamespaceCase
53    value:           lower_case
54  - key:             readability-identifier-naming.ClassCase
55    value:           CamelCase
56  - key:             readability-identifier-naming.PrivateMemberSuffix
57    value:           _
58  - key:             readability-identifier-naming.StructCase
59    value:           CamelCase
60  - key:             readability-identifier-naming.FunctionCase
61    value:           CamelCase
62  - key:             readability-identifier-naming.VariableCase
63    value:           lower_case
64  - key:             readability-identifier-naming.GlobalConstantCase
65    value:           UPPER_CASE
66  - key:             readability-identifier-naming.GlobalConstantPrefix
67    value:           g_
68  - key:             readability-identifier-naming.LocalVariableCase
69    value:           CamelCase
70  - key:             readability-identifier-naming.ParameterCase
71    value:           lower_case
72  - key:             readability-magic-numbers.IgnoredIntegerValues
73    value:           '1;2;3;4;5;6;7;8'
74...
75
76