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