class RubocopGithubAnnotationFormatter::AnnotationFormatter
Constants
- ANNOTATION_TEMPLATE
Public Instance Methods
file_finished(file, offenses)
click to toggle source
# File lib/rubocop-github-annotation-formatter.rb, line 10 def file_finished(file, offenses) return if offenses.empty? offenses.each do |offense| next if offense.corrected? output.printf(ANNOTATION_TEMPLATE, file: file, line: offense.location.line, col: offense.location.begin_pos, message: offense.message) end end