lib/rubycritic/report_generators/line_generator.rb in rubycritic-0.0.3 vs lib/rubycritic/report_generators/line_generator.rb in rubycritic-0.0.4

- old
+ new

@@ -3,16 +3,14 @@ require "cgi" module Rubycritic class LineGenerator < BaseGenerator - LINE_NUMBER_PADDING = 3 NORMAL_TEMPLATE = ERB.new(File.read(File.join(TEMPLATES_DIR, "line.html.erb"))) SMELLY_TEMPLATE = ERB.new(File.read(File.join(TEMPLATES_DIR, "smelly_line.html.erb"))) - def initialize(text, number, smells) + def initialize(text, smells) @text = CGI::escapeHTML(text.chomp) - @number = number.to_s.rjust(LINE_NUMBER_PADDING) @smells = smells @template = if @smells.empty? NORMAL_TEMPLATE else