mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 13:50:10 +01:00
Disable new clang-tidy rules with google- prefixed aliases (#7778)
Some `google-` prefixed rules have been renamed to rules without the prefix. The `google-` prefix still remains as an alias to these new rules. Since we turn on the `google-` prefix rules and use those in NOLINT expressions, disable the new aliased names. Otherwise we have to put both names in NOLINT expressions.
This commit is contained in:
+10
@@ -38,6 +38,16 @@ Checks:
|
||||
- '-readability-trailing-comma'
|
||||
- '-readability-use-anyofallof'
|
||||
|
||||
# These are copies of older google- prefixed rules that have been moved
|
||||
# out of that prefix, but the google- prefix names still exist as aliases to
|
||||
# these. We enable the google- prefix rules and use those in our NOLINT
|
||||
# expressions, so we disable the newer aliased rules.
|
||||
#
|
||||
# Alias for google-explicit-constructor.
|
||||
- '-misc-explicit-constructor'
|
||||
# Alias for google-readability-casting.
|
||||
- '-modernize-avoid-c-style-cast'
|
||||
|
||||
# Warns when we have multiple empty cases in switches, which we do for comment
|
||||
# reasons.
|
||||
- '-bugprone-branch-clone'
|
||||
|
||||
Reference in New Issue
Block a user