Module: PatchedRubocop::GitRunner
- Included in:
- RuboCop::Runner
- Defined in:
- lib/ducalis/patched_rubocop/git_runner.rb
Instance Method Summary collapse
Instance Method Details
#inspect_file(file) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/ducalis/patched_rubocop/git_runner.rb', line 5 def inspect_file(file) offenses, updated = super offenses = offenses.select do |offense| GitAccess.instance.for(file.path).changed?(offense.line) end [offenses, updated] end |