lint on too many single character bindings
This commit is contained in:
parent
5373ffdeb8
commit
463897fd39
6 changed files with 91 additions and 12 deletions
|
@ -204,7 +204,10 @@ 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_early_lint_pass(box non_expressive_names::NonExpressiveNames {
|
||||
similarity_threshold: 1,
|
||||
max_single_char_names: 5,
|
||||
});
|
||||
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());
|
||||
|
@ -331,6 +334,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::MANY_SINGLE_CHAR_NAMES,
|
||||
non_expressive_names::SIMILAR_NAMES,
|
||||
open_options::NONSENSICAL_OPEN_OPTIONS,
|
||||
overflow_check_conditional::OVERFLOW_CHECK_CONDITIONAL,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue