lib/quality/command_output_processor.rb in quality-1.3.0 vs lib/quality/command_output_processor.rb in quality-1.3.1

- old
+ new

@@ -11,11 +11,11 @@ @emacs_format = false @found_output = false @violations = 0 end - def process!(&count_violations_on_line) + def process(&count_violations_on_line) process_file(file, &count_violations_on_line) end private @@ -40,12 +40,12 @@ output end def preprocess_line_for_emacs if @current_line =~ /^ *(\S*.rb:[0-9]*) *(.*)/ - $1 + ': ' + $2 + "\n" + Regexp.last_match[1] + ': ' + Regexp.last_match[2] + "\n" elsif @current_line =~ /^ *(.*) +(\S*.rb:[0-9]*) *(.*)/ - $2 + ': ' + $1 + "\n" + Regexp.last_match[2] + ': ' + Regexp.last_match[1] + "\n" else @current_line end end end