From 3530a18e465263605f2f72e29498bbd81db84017 Mon Sep 17 00:00:00 2001 From: Abigail Date: Thu, 7 Sep 2017 10:01:10 +0100 Subject: [PATCH] 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/ --- lib/linguist/languages.yml | 1 + samples/YAML/filenames/.clang-tidy | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 samples/YAML/filenames/.clang-tidy diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index cbcdc8c1..9ccb41e1 100755 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -5060,6 +5060,7 @@ YAML: - ".yml.mysql" filenames: - ".clang-format" + - ".clang-tidy" ace_mode: yaml codemirror_mode: yaml codemirror_mime_type: text/x-yaml diff --git a/samples/YAML/filenames/.clang-tidy b/samples/YAML/filenames/.clang-tidy new file mode 100644 index 00000000..e392afb9 --- /dev/null +++ b/samples/YAML/filenames/.clang-tidy @@ -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' +... +