Class: Lumin::Formatters::Github
- Inherits:
-
Object
- Object
- Lumin::Formatters::Github
- Defined in:
- lib/lumin/formatters/github.rb
Instance Method Summary collapse
Instance Method Details
#format(offenses) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/lumin/formatters/github.rb', line 6 def format(offenses) offenses.map do |offense| location = offense.location properties = "file=#{escape_property(offense.path)},line=#{location.start_line}," \ "col=#{location.start_column + 1},title=#{escape_property(offense.rule_name)}" "::error #{properties}::#{escape_data(offense.)}" end.join("\n") end |