Skip to content

Commit

Permalink
Add explanatory comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tobischo committed May 10, 2021
1 parent 9a66ccc commit c7d9be8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/pronto/eslint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ def inspect(patch, commit_sha)

return fatals if fatals && !fatals.empty?

# Use the line specific commit sha for non-fatal errors so that it can be better
# attributed to the specific commit.
offences.map do |offence|
patch.added_lines.select { |line| line.new_lineno == offence['line'] }
.map { |line| new_message(offence, line, line.commit_sha) }
Expand Down

0 comments on commit c7d9be8

Please sign in to comment.