lint on binding-names that are too similar
This commit is contained in:
parent
075040b034
commit
06ca1fc0a6
14 changed files with 245 additions and 48 deletions
|
@ -31,6 +31,9 @@ extern crate unicode_normalization;
|
|||
// for semver check in attrs.rs
|
||||
extern crate semver;
|
||||
|
||||
// for levensthein distance
|
||||
extern crate strsim;
|
||||
|
||||
// for regex checking
|
||||
extern crate regex_syntax;
|
||||
|
||||
|
@ -84,6 +87,7 @@ pub mod needless_features;
|
|||
pub mod needless_update;
|
||||
pub mod new_without_default;
|
||||
pub mod no_effect;
|
||||
pub mod non_expressive_names;
|
||||
pub mod open_options;
|
||||
pub mod overflow_check_conditional;
|
||||
pub mod panic;
|
||||
|
@ -200,6 +204,7 @@ pub fn plugin_registrar(reg: &mut Registry) {
|
|||
reg.register_late_lint_pass(box types::CharLitAsU8);
|
||||
reg.register_late_lint_pass(box print::PrintLint);
|
||||
reg.register_late_lint_pass(box vec::UselessVec);
|
||||
reg.register_early_lint_pass(box non_expressive_names::SimilarNames(1));
|
||||
reg.register_late_lint_pass(box drop_ref::DropRefPass);
|
||||
reg.register_late_lint_pass(box types::AbsurdExtremeComparisons);
|
||||
reg.register_late_lint_pass(box regex::RegexPass::default());
|
||||
|
@ -326,6 +331,7 @@ pub fn plugin_registrar(reg: &mut Registry) {
|
|||
needless_update::NEEDLESS_UPDATE,
|
||||
new_without_default::NEW_WITHOUT_DEFAULT,
|
||||
no_effect::NO_EFFECT,
|
||||
non_expressive_names::SIMILAR_NAMES,
|
||||
open_options::NONSENSICAL_OPEN_OPTIONS,
|
||||
overflow_check_conditional::OVERFLOW_CHECK_CONDITIONAL,
|
||||
panic::PANIC_PARAMS,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue