1
Fork 0

make single char names threshold configurable

This commit is contained in:
Oliver Schneider 2016-03-14 14:56:44 +01:00
parent 24cdb14d5a
commit ea1c2406cc
3 changed files with 5 additions and 3 deletions

View file

@ -202,7 +202,7 @@ pub fn plugin_registrar(reg: &mut Registry) {
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::NonExpressiveNames {
max_single_char_names: 5,
max_single_char_names: conf.max_single_char_names,
});
reg.register_late_lint_pass(box drop_ref::DropRefPass);
reg.register_late_lint_pass(box types::AbsurdExtremeComparisons);