Skip to content

Commit

Permalink
Merge pull request #56 from ohbarye/skip-global-offense
Browse files Browse the repository at this point in the history
Skip global offenses to avoid "undefined method `begin'"
  • Loading branch information
mgrachev committed Nov 18, 2021
2 parents 4c4064d + c609128 commit 242ce74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rdjson_formatter/rdjson_formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ def started(_target_files)

def file_finished(file, offenses)
offenses.each do |offense|
next if offense.location == RuboCop::Cop::Offense::NO_LOCATION

@rdjson[:diagnostics] << build_diagnostic(file, offense)
end
end
Expand Down
Empty file.

0 comments on commit 242ce74

Please sign in to comment.