class Greener::Formatter::SimpleText
Prints violation info that includes file, line number, text of the line, and message
Public Instance Methods
finished(violations)
click to toggle source
# File lib/greener/formatter/simple_text.rb, line 7 def finished(violations) violations.each do |violation| puts "#{violation[:file]}:#{violation[:line]}" puts "#{violation[:text_of_line]}" puts "#{' ' * (violation[:column] - 1)}^^^ #{violation[:message]}" puts "" end end