]> git.lizzy.rs Git - rust.git/commitdiff
Recognize quux as a metasyntactic variable
authorSébastien Santoro <dereckson@espace-win.org>
Fri, 11 Nov 2016 04:57:29 +0000 (05:57 +0100)
committerGitHub <noreply@github.com>
Fri, 11 Nov 2016 04:57:29 +0000 (05:57 +0100)
quux is another metasyntactic variable like foo and so
should be detected by the blacklisted names linter.

clippy_lints/src/utils/conf.rs

index 0dccaec8ed8c1b6ce09814dcf03bef4aebe0604a..10046a3ce1647ca7c7ccf490698206953963438e 100644 (file)
@@ -161,7 +161,7 @@ fn set(&mut self, name: String, value: toml::Value) -> Result<(), Error> {
 
 define_Conf! {
     /// Lint: BLACKLISTED_NAME. The list of blacklisted names to lint about
-    ("blacklisted-names", blacklisted_names, ["foo", "bar", "baz"] => Vec<String>),
+    ("blacklisted-names", blacklisted_names, ["foo", "bar", "baz", "quux"] => Vec<String>),
     /// Lint: CYCLOMATIC_COMPLEXITY. The maximum cyclomatic complexity a function can have
     ("cyclomatic-complexity-threshold", cyclomatic_complexity_threshold, 25 => u64),
     /// Lint: DOC_MARKDOWN. The list of words this lint should not consider as identifiers needing ticks