2022-03-22 14:41:04 +00:00
|
|
|
# Copyright (c) 2021-2022 Huawei Device Co., Ltd.
|
2021-09-04 08:04:43 +00:00
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
---
|
|
|
|
# Note well! The list of global exceptions is maintained in cmake/ClangTidy.cmake
|
|
|
|
WarningsAsErrors: '*'
|
|
|
|
HeaderFilterRegex: '.*/(assembler|compiler|debugger|libpandabase|libpandafile|runtime|class2panda)/.*'
|
|
|
|
AnalyzeTemporaryDtors: false
|
|
|
|
User: user
|
|
|
|
CheckOptions:
|
|
|
|
- key: google-readability-braces-around-statements.ShortStatementLines
|
|
|
|
value: '1'
|
|
|
|
- key: google-readability-function-size.StatementThreshold
|
|
|
|
value: '800'
|
|
|
|
- key: google-readability-namespace-comments.ShortNamespaceLines
|
|
|
|
value: '10'
|
|
|
|
- key: google-readability-namespace-comments.SpacesBeforeComments
|
|
|
|
value: '2'
|
|
|
|
- key: modernize-loop-convert.MaxCopySize
|
|
|
|
value: '16'
|
|
|
|
- key: modernize-loop-convert.MinConfidence
|
|
|
|
value: reasonable
|
|
|
|
- key: modernize-loop-convert.NamingStyle
|
|
|
|
value: CamelCase
|
|
|
|
- key: modernize-pass-by-value.IncludeStyle
|
|
|
|
value: llvm
|
|
|
|
- key: modernize-replace-auto-ptr.IncludeStyle
|
|
|
|
value: llvm
|
|
|
|
- key: modernize-use-nullptr.NullMacros
|
|
|
|
value: 'NULL'
|
|
|
|
- key: readability-identifier-naming.ClassMethodCase
|
|
|
|
value: CamelCase
|
|
|
|
- key: readability-identifier-naming.MethodCase
|
|
|
|
value: CamelCase
|
|
|
|
- key: readability-identifier-naming.EnumConstantCase
|
|
|
|
value: UPPER_CASE
|
|
|
|
- key: readability-identifier-naming.ConstantCase
|
|
|
|
value: UPPER_CASE
|
|
|
|
- key: readability-identifier-naming.ConstantMemberCase
|
|
|
|
value: UPPER_CASE
|
|
|
|
- key: readability-function-size.LineThreshold
|
|
|
|
value: 200
|
|
|
|
- key: readability-identifier-naming.NamespaceCase
|
|
|
|
value: lower_case
|
|
|
|
- key: readability-identifier-naming.ClassCase
|
|
|
|
value: CamelCase
|
|
|
|
- key: readability-identifier-naming.PrivateMemberSuffix
|
|
|
|
value: _
|
|
|
|
- key: readability-identifier-naming.StructCase
|
|
|
|
value: CamelCase
|
|
|
|
- key: readability-identifier-naming.FunctionCase
|
|
|
|
value: CamelCase
|
|
|
|
- key: readability-identifier-naming.VariableCase
|
|
|
|
value: lower_case
|
|
|
|
- key: readability-identifier-naming.GlobalConstantCase
|
|
|
|
value: UPPER_CASE
|
|
|
|
- key: readability-identifier-naming.GlobalConstantPrefix
|
|
|
|
value: g_
|
|
|
|
- key: readability-identifier-naming.LocalVariableCase
|
|
|
|
value: CamelCase
|
|
|
|
- key: readability-identifier-naming.ParameterCase
|
|
|
|
value: lower_case
|
|
|
|
- key: readability-magic-numbers.IgnoredIntegerValues
|
|
|
|
value: '1;2;3;4;5;6;7;8'
|
|
|
|
...
|
|
|
|
|