class JRuby::Lint::Reporters::Html
Public Class Methods
new(project, output, options=OpenStruct.new)
click to toggle source
# File lib/jruby/lint/reporters/html.rb, line 8 def initialize(project, output, options=OpenStruct.new) @tags, @output, @options = project.tags, output, options @template = ERB.new(File.read(File.expand_path('../jruby-lint.html.erb', __FILE__))) end
Public Instance Methods
print_report(findings)
click to toggle source
# File lib/jruby/lint/reporters/html.rb, line 16 def print_report(findings) @findings = [] findings.each do |finding| @findings << finding unless (@tags & finding.tags).empty? end File.open(@output, 'w') do |file| file.write @template.result(binding) end end
report(findings)
click to toggle source
# File lib/jruby/lint/reporters/html.rb, line 13 def report(findings) end