Class: Yamlint::Output::Github
- Defined in:
- lib/yamlint/output/github.rb
Instance Method Summary collapse
Instance Method Details
#format(filepath, problems) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/yamlint/output/github.rb', line 6 def format(filepath, problems) return '' if problems.empty? problems.map do |problem| type = problem.error? ? 'error' : 'warning' "::#{type} file=#{filepath},line=#{problem.line},col=#{problem.column}::#{problem.} (#{problem.rule})" end.join("\n") end |
#format_summary(_total_files, _total_problems) ⇒ Object
15 16 17 |
# File 'lib/yamlint/output/github.rb', line 15 def format_summary(_total_files, _total_problems) '' end |