From 0e6807e86b6ecf50d7ef4dfd9cd25e6aada1deca Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Santoro?= Date: Fri, 11 Nov 2016 05:57:29 +0100 Subject: [PATCH] Recognize quux as a metasyntactic variable quux is another metasyntactic variable like foo and so should be detected by the blacklisted names linter. --- clippy_lints/src/utils/conf.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_lints/src/utils/conf.rs b/clippy_lints/src/utils/conf.rs index 0dccaec8ed8..10046a3ce16 100644 --- a/clippy_lints/src/utils/conf.rs +++ b/clippy_lints/src/utils/conf.rs @@ -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), + ("blacklisted-names", blacklisted_names, ["foo", "bar", "baz", "quux"] => Vec), /// 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 -- 2.44.0