mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
refactor: Add clang-tidy project config
This commit is contained in:
26
.clang-tidy
Normal file
26
.clang-tidy
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
# SPDX-FileCopyrightText: Copyright (C) swift Project Community / Contributors
|
||||||
|
# SPDX-License-Identifier: CC0-1.0
|
||||||
|
|
||||||
|
Checks:
|
||||||
|
- '-*'
|
||||||
|
- 'modernize-*'
|
||||||
|
- '-modernize-use-trailing-return-type'
|
||||||
|
- '-modernize-use-nodiscard'
|
||||||
|
- '-modernize-pass-by-value'
|
||||||
|
- 'bugprone-*'
|
||||||
|
- 'readability-*'
|
||||||
|
- '-readability-identifier-length'
|
||||||
|
- '-readability-braces-around-statements'
|
||||||
|
- 'cppcoreguidelines-*'
|
||||||
|
|
||||||
|
CheckOptions:
|
||||||
|
- key: readability-identifier-naming.ClassCase
|
||||||
|
value: 'CamelCase'
|
||||||
|
- key: readability-identifier-naming.MethodCase
|
||||||
|
value: 'camelBack'
|
||||||
|
- key: readability-identifier-naming.MemberCase
|
||||||
|
value: 'camelBack'
|
||||||
|
- key: readability-identifier-naming.MemberPrefix
|
||||||
|
value: 'm_'
|
||||||
|
- key: readability-implicit-bool-conversion.AllowPointerConditions
|
||||||
|
value: true
|
||||||
Reference in New Issue
Block a user