Fix reek problems or whitelist
This commit is contained in:
parent
f3e1a76914
commit
5170a00a85
2 changed files with 10 additions and 3 deletions
|
@ -25,11 +25,13 @@ FeatureEnvy:
|
|||
enabled: true
|
||||
exclude:
|
||||
- Mutant::CLI#parse
|
||||
- Mutant::CLI#add_strategies
|
||||
- Mutant::Matcher::Method::Instance#match?
|
||||
- Mutant::Matcher::Method::Singleton#receiver?
|
||||
- Mutant::Mutation::Evil#success?
|
||||
- Mutant::Mutation::Neutral#success?
|
||||
- Mutant::Reporter::CLI#subject_results
|
||||
- Mutant::Strategy::Rspec#options
|
||||
IrresponsibleModule:
|
||||
enabled: true
|
||||
exclude: []
|
||||
|
@ -78,6 +80,8 @@ TooManyStatements:
|
|||
exclude:
|
||||
- Mutant#self.singleton_subclass_instance
|
||||
- Mutant::CLI#parse
|
||||
- Mutant::CLI#add_options
|
||||
- Mutant::CLI#add_strategies
|
||||
- Mutant::Killer::Rspec#run
|
||||
- Mutant::Reporter::CLI#colorized_diff
|
||||
- Mutant::Reporter::CLI::Printer::Config::Runner#run
|
||||
|
@ -127,4 +131,8 @@ UtilityFunction:
|
|||
- Mutant::Mutation::Evil#success?
|
||||
- Mutant::Mutation::Neutral#success?
|
||||
- Mutant::NodeHelpers#s
|
||||
- Mutant::Strategy::Rspec#configuration
|
||||
- Mutant::Strategy::Rspec#options
|
||||
- Mutant::Strategy::Rspec#world
|
||||
|
||||
max_helper_calls: 0
|
||||
|
|
|
@ -96,9 +96,8 @@ module Mutant
|
|||
# @api private
|
||||
#
|
||||
def match_prefixes
|
||||
names = name_nesting
|
||||
names.length.downto(1).map do |last|
|
||||
names[0...last].join('::')
|
||||
name_nesting.length.downto(1).map do |last|
|
||||
name_nesting[0...last].join('::')
|
||||
end
|
||||
end
|
||||
memoize :match_prefixes
|
||||
|
|
Loading…
Reference in a new issue