rrubocop 0.8.15

10x faster RuboCop drop-in. Same output format and configs, without maintaining RuboCop gems.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
mod abc_size;
mod block_nesting;
mod class_length;
mod collection_literal_length;
mod module_length;
mod parameter_lists;

use crate::cop::registry::CopRegistry;

pub fn register_all(registry: &mut CopRegistry) {
    registry.register(Box::new(abc_size::AbcSize));
    registry.register(Box::new(block_nesting::BlockNesting));
    registry.register(Box::new(class_length::ClassLength));
    registry.register(Box::new(collection_literal_length::CollectionLiteralLength));
    registry.register(Box::new(module_length::ModuleLength));
    registry.register(Box::new(parameter_lists::ParameterLists));
}