Added a lint-fraction-readability flag to the configuration

This commit is contained in:
xFrednet 2020-12-04 21:26:47 +00:00
parent 13c1a01936
commit 6edd598856
10 changed files with 118 additions and 37 deletions

View file

@ -170,6 +170,8 @@ define_Conf! {
(warn_on_all_wildcard_imports, "warn_on_all_wildcard_imports": bool, false),
/// Lint: DISALLOWED_METHOD. The list of blacklisted methods to lint about. NB: `bar` is not here since it has legitimate uses
(disallowed_methods, "disallowed_methods": Vec<String>, Vec::<String>::new()),
/// Lint: UNREADABLE_LITERAL. Should the fraction of a decimal be linted to include separators.
(lint_fraction_readability, "lint_fraction_readability": bool, true),
}
impl Default for Conf {