From 506b9f81d6946226346c8aafe0c694c7b7d1fee4 Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Sun, 28 Jul 2013 19:24:00 +0200 Subject: [PATCH] Fix style issues in Mutant::Loader --- config/rubocop.yml | 10 ++++++++++ lib/mutant/loader.rb | 7 ++++++- 2 files changed, 16 insertions(+), 1 deletion(-) 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