Fix style issues in Mutant::Loader
This commit is contained in:
parent
ddd669c2c2
commit
506b9f81d6
2 changed files with 16 additions and 1 deletions
|
@ -33,6 +33,16 @@ CollectionMethods:
|
|||
AccessControl:
|
||||
Enabled: false
|
||||
|
||||
MethodLength:
|
||||
CountComments: false
|
||||
Max: 17 # TODO: Bring down to 10
|
||||
|
||||
RegexpLiteral: # I do not agree %r(\A) is more readable than /\A/
|
||||
Enabled: false
|
||||
|
||||
Eval:
|
||||
Enabled: false # Mutant must use Kernel#eval to inject mutated source
|
||||
|
||||
# Limit line length
|
||||
LineLength:
|
||||
Max: 124 # TODO: lower to 79
|
||||
|
|
|
@ -40,7 +40,12 @@ module Mutant
|
|||
# @api private
|
||||
#
|
||||
def run
|
||||
eval(source, TOPLEVEL_BINDING, @subject.source_path.to_s, @subject.source_line)
|
||||
eval(
|
||||
source,
|
||||
TOPLEVEL_BINDING,
|
||||
@subject.source_path.to_s,
|
||||
@subject.source_line
|
||||
)
|
||||
end
|
||||
|
||||
# Return source
|
||||
|
|
Loading…
Reference in a new issue