New lint for issue

#72
This commit is contained in:
llogiq
2015-05-30 15:10:19 +02:00
parent 0d651c72ff
commit 77838d6ba7
3 changed files with 63 additions and 0 deletions

View File

@@ -24,6 +24,7 @@ pub mod eta_reduction;
pub mod identity_op;
pub mod mut_mut;
pub mod len_zero;
pub mod attrs;
#[plugin_registrar]
pub fn plugin_registrar(reg: &mut Registry) {
@@ -44,6 +45,7 @@ pub fn plugin_registrar(reg: &mut Registry) {
reg.register_lint_pass(box mut_mut::MutMut as LintPassObject);
reg.register_lint_pass(box len_zero::LenZero as LintPassObject);
reg.register_lint_pass(box misc::CmpOwned as LintPassObject);
reg.register_lint_pass(box attrs::AttrPass as LintPassObject);
reg.register_lint_group("clippy", vec![types::BOX_VEC, types::LINKEDLIST,
misc::SINGLE_MATCH, misc::STR_TO_STRING,
@@ -60,5 +62,6 @@ pub fn plugin_registrar(reg: &mut Registry) {
mut_mut::MUT_MUT,
len_zero::LEN_ZERO,
len_zero::LEN_WITHOUT_IS_EMPTY,
attrs::INLINE_ALWAYS,
]);
}