diff --git a/config/rubocop.yml b/config/rubocop.yml index b629f060..600bce4e 100644 --- a/config/rubocop.yml +++ b/config/rubocop.yml @@ -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 diff --git a/lib/mutant/loader.rb b/lib/mutant/loader.rb index 002a5047..18b57e3d 100644 --- a/lib/mutant/loader.rb +++ b/lib/mutant/loader.rb @@ -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