Class: LintFu::TextReport

Inherits:
Report
  • Object
show all
Defined in:
lib/lint_fu/report.rb

Instance Attribute Summary

Attributes inherited from Report

#scan, #scm

Instance Method Summary collapse

Methods inherited from Report

#initialize

Constructor Details

This class inherits a constructor from LintFu::Report

Instance Method Details

#generate(output_stream) ⇒ Object



226
227
228
229
230
231
232
233
234
235
236
237
# File 'lib/lint_fu/report.rb', line 226

def generate(output_stream)
  counter = 1

  @issues.each do |issue|
    #commit, author = scm.blame(issue.relative_file, issue.line)
    output_stream.puts " #{counter}) Failure:"
    output_stream.puts "#{issue.brief}, #{issue.relative_file}:#{issue.line}"
    output_stream.puts
    output_stream.puts
    counter += 1
  end
end