Skip to content

Commit 8ab66a1

Browse files
committed
Do not include violations that don't have any offenses
1 parent e996dd6 commit 8ab66a1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/rubocop/git/runner.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ def run(options)
1818
private
1919

2020
def violations
21-
@violations ||= style_checker.violations
21+
@violations ||= style_checker.violations.reject do |violation|
22+
violation.offenses.all?(&:disabled?)
23+
end
2224
end
2325

2426
def style_checker

0 commit comments

Comments
 (0)