Add .clang-tidy filename for YAML (#3767)

.clang-tidy is the filename used for clang-tidy's configuration file.
clang-tidy is a clang-based C++ "linter" tool. For more info, see:
https://clang.llvm.org/extra/clang-tidy/
This commit is contained in:
Abigail
2017-09-07 10:01:10 +01:00
committed by Colin Seymour
parent ae8f4f9228
commit 3530a18e46
2 changed files with 31 additions and 0 deletions

View File

@@ -5060,6 +5060,7 @@ YAML:
- ".yml.mysql"
filenames:
- ".clang-format"
- ".clang-tidy"
ace_mode: yaml
codemirror_mode: yaml
codemirror_mime_type: text/x-yaml

View File

@@ -0,0 +1,30 @@
---
Checks: 'clang-diagnostic-*,clang-analyzer-*'
WarningsAsErrors: ''
HeaderFilterRegex: ''
AnalyzeTemporaryDtors: false
FormatStyle: none
User: linguist-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'
...