Skip to content

Commit

Permalink
Explicitly reject offenses disabled by rubocop:disable comment
Browse files Browse the repository at this point in the history
Fixes #13
  • Loading branch information
mmozuras committed Sep 6, 2015
1 parent 86cdab9 commit d2f8c3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pronto/rubocop.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def inspect(patch)
processed_source = ::RuboCop::ProcessedSource.from_file(patch.new_file_full_path.to_s)
offences = @inspector.send(:inspect_file, processed_source).first

offences.map do |offence|
offences.sort.reject(&:disabled?).map do |offence|
patch.added_lines.select { |line| line.new_lineno == offence.line }
.map { |line| new_message(offence, line) }
end
Expand Down

0 comments on commit d2f8c3b

Please sign in to comment.