Recognize quux as a metasyntactic variable

quux is another metasyntactic variable like foo and so
should be detected by the blacklisted names linter.
This commit is contained in:
Sébastien Santoro 2016-11-11 05:57:29 +01:00 committed by GitHub
parent 3edf712434
commit 0e6807e86b

View 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