lib/warder/code_smells_runner.rb in warder-0.1.1 vs lib/warder/code_smells_runner.rb in warder-0.1.2

- old
+ new

@@ -1,20 +1,7 @@ module Warder # responsible for run code smells validation class CodeSmellsRunner < Runner - def initialize(options = {}) - @options = options - end - - private - - def command - "reek #{@options.files}" - end - - def failed?(line) - match = line.match(/ -- (\d+) warnings?:/) - - match && match[1].to_i != 0 - end + COMMAND_NAME = 'reek' + FAILURE_REGEXP = / -- (\d+) warnings?:/ end end