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:
|
AccessControl:
|
||||||
Enabled: false
|
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
|
# Limit line length
|
||||||
LineLength:
|
LineLength:
|
||||||
Max: 124 # TODO: lower to 79
|
Max: 124 # TODO: lower to 79
|
||||||
|
|
|
@ -40,7 +40,12 @@ module Mutant
|
||||||
# @api private
|
# @api private
|
||||||
#
|
#
|
||||||
def run
|
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
|
end
|
||||||
|
|
||||||
# Return source
|
# Return source
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue