Fix style issues in Mutant::Loader

This commit is contained in:
Markus Schirp 2013-07-28 19:24:00 +02:00
parent ddd669c2c2
commit 506b9f81d6
2 changed files with 16 additions and 1 deletions

View file

@ -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

View file

@ -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