Class: Yamlint::Output::Parsable
- Defined in:
- lib/yamlint/output/parsable.rb
Instance Method Summary collapse
Instance Method Details
#format(filepath, problems) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/yamlint/output/parsable.rb', line 6 def format(filepath, problems) return '' if problems.empty? problems.map do |problem| "#{filepath}:#{problem.line}:#{problem.column}: [#{problem.level}] #{problem.} (#{problem.rule})" end.join("\n") end |
#format_summary(_total_files, _total_problems) ⇒ Object
14 15 16 |
# File 'lib/yamlint/output/parsable.rb', line 14 def format_summary(_total_files, _total_problems) '' end |