lib/quality/command_output_processor.rb in quality-22.0.0 vs lib/quality/command_output_processor.rb in quality-23.0.0
- old
+ new
@@ -1,5 +1,6 @@
+# frozen_string_literal: true
module Quality
# Class processes output from a code quality command, tweaking it
# for editor output and counting the number of violations found
class CommandOutputProcessor
attr_accessor :emacs_format
@@ -20,11 +21,10 @@
private
def process_file(file, &count_violations_on_line)
out = ''
while (@current_line = file.gets)
- out <<
- process_line(&count_violations_on_line)
+ out += process_line(&count_violations_on_line)
end
out
end
def process_line