allow items_after_statements by default

This commit is contained in:
Andre Bogus 2016-04-23 07:50:46 +02:00
parent efb5417439
commit e3d86800ff
3 changed files with 3 additions and 3 deletions

View file

@ -69,7 +69,7 @@ name
[inline_always](https://github.com/Manishearth/rust-clippy/wiki#inline_always) | warn | `#[inline(always)]` is a bad idea in most cases
[invalid_regex](https://github.com/Manishearth/rust-clippy/wiki#invalid_regex) | deny | finds invalid regular expressions in `Regex::new(_)` invocations
[invalid_upcast_comparisons](https://github.com/Manishearth/rust-clippy/wiki#invalid_upcast_comparisons) | warn | a comparison involving an upcast which is always true or false
[items_after_statements](https://github.com/Manishearth/rust-clippy/wiki#items_after_statements) | warn | finds blocks where an item comes after a statement
[items_after_statements](https://github.com/Manishearth/rust-clippy/wiki#items_after_statements) | allow | finds blocks where an item comes after a statement
[iter_next_loop](https://github.com/Manishearth/rust-clippy/wiki#iter_next_loop) | warn | for-looping over `_.next()` which is probably not intended
[len_without_is_empty](https://github.com/Manishearth/rust-clippy/wiki#len_without_is_empty) | warn | traits and impls that have `.len()` but not `.is_empty()`
[len_zero](https://github.com/Manishearth/rust-clippy/wiki#len_zero) | warn | checking `.len() == 0` or `.len() > 0` (or similar) when `.is_empty()` could be used instead

View file

@ -28,7 +28,7 @@ use utils::in_macro;
/// ```
declare_lint! {
pub ITEMS_AFTER_STATEMENTS,
Warn,
Allow,
"finds blocks where an item comes after a statement"
}

View file

@ -244,6 +244,7 @@ pub fn plugin_registrar(reg: &mut Registry) {
booleans::NONMINIMAL_BOOL,
enum_glob_use::ENUM_GLOB_USE,
if_not_else::IF_NOT_ELSE,
items_after_statements::ITEMS_AFTER_STATEMENTS,
matches::SINGLE_MATCH_ELSE,
mem_forget::MEM_FORGET,
methods::OPTION_UNWRAP_USED,
@ -297,7 +298,6 @@ pub fn plugin_registrar(reg: &mut Registry) {
formatting::SUSPICIOUS_ELSE_FORMATTING,
functions::TOO_MANY_ARGUMENTS,
identity_op::IDENTITY_OP,
items_after_statements::ITEMS_AFTER_STATEMENTS,
len_zero::LEN_WITHOUT_IS_EMPTY,
len_zero::LEN_ZERO,
lifetimes::NEEDLESS_LIFETIMES,