free_mutant/config/reek.yml

138 lines
3.4 KiB
YAML
Raw Normal View History

---
2018-09-12 09:15:43 -04:00
detectors:
Attribute:
enabled: false
exclude: []
BooleanParameter:
enabled: true
exclude: []
ClassVariable:
enabled: true
exclude: []
ControlParameter:
enabled: true
exclude:
- Mutant::Expression#match_length
DataClump:
enabled: true
exclude: []
max_copies: 2
min_clump_size: 2
DuplicateMethodCall:
enabled: false
exclude: []
max_calls: 1
allow_calls: []
FeatureEnvy:
enabled: false
# Buggy smell detector
IrresponsibleModule:
enabled: false
exclude: []
LongParameterList:
enabled: true
exclude:
- Mutant::Matcher::Method::Instance#self.build
- Mutant::Meta::Example::DSL # 3 vars
max_params: 2
LongYieldList:
enabled: true
exclude: []
max_params: 2
NestedIterators:
enabled: true
exclude:
- Mutant#self.singleton_subclass_instance
- Mutant::CLI#parse
- Mutant::Mutator::Node::Arguments#emit_argument_mutations
- Mutant::Mutator::Node::Resbody#mutate_captures
- Mutant::Mutator::Util::Array::Element#dispatch
- Mutant::Parallel::Master#run
- Mutant::RequireHighjack#self.call
- Mutant::Selector::Expression#call
- Parser::Lexer#self.new
max_allowed_nesting: 1
ignore_iterators: []
NilCheck:
enabled: false
RepeatedConditional:
enabled: true
exclude:
- Mutant::Mutator
- Mutant::Meta::Example::DSL
max_ifs: 1
TooManyInstanceVariables:
enabled: true
exclude:
- Mutant::Mutator # 4 vars
- Mutant::Parallel::Master # 4 vars
- Mutant::Meta::Example::DSL # 4 vars
max_instance_variables: 3
TooManyMethods:
enabled: true
exclude:
- Mutant::CLI
- Mutant::Mutator::Node
- Mutant::Parallel::Master
max_methods: 10
TooManyStatements:
enabled: true
exclude:
- Mutant::CLI#add_debug_options
- Mutant::CLI#add_environment_options
- Mutant::Reporter::CLI::Printer::Config#run
- Mutant::Reporter::CLI::Printer::EnvProgress#run
- Mutant::Runner#run_driver
- Mutant::Zombifier::File#self.find
max_statements: 7
UncommunicativeMethodName:
enabled: true
exclude:
- Mutant::AST::Sexp#s
- Mutant::Mutation#sha1
reject:
- '/^[a-z]$/'
- '/[0-9]$/'
- '/[A-Z]/'
accept: []
UncommunicativeModuleName:
enabled: true
exclude: []
reject:
- '/^.$/'
- '/[0-9]$/'
accept: []
UncommunicativeParameterName:
enabled: true
exclude: []
reject:
- '/^.$/'
- '/[0-9]$/'
- '/[A-Z]/'
accept: []
UncommunicativeVariableName:
enabled: true
exclude: []
reject:
- '/^.$/'
- '/[0-9]$/'
- '/[A-Z]/'
accept: ['force_utf32']
UnusedParameters:
enabled: true
exclude: []
UtilityFunction:
enabled: true
exclude:
- Mutant::AST::Sexp#s
- Mutant::Actor::Env#new_mailbox
- Mutant::CLI#reporter
- Mutant::Integration::Null#call
- Mutant::Integration::Rspec#parse_example
- Mutant::Integration::Rspec#parse_expression # intentional, private
- Mutant::Meta::Example::Verification#format_mutations # intentional, private
- Mutant::Reporter::CLI::Format::Progressive#new_buffer
- Mutant::Reporter::CLI::Printer::StatusProgressive#object # False positive calls super
- Mutant::Repository::Diff#tracks? # intentional, private
- Mutant::Repository::Diff#within_working_directory? # intentional, private