We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e996dd6 commit e01a226Copy full SHA for e01a226
lib/rubocop/git/runner.rb
@@ -18,7 +18,10 @@ def run(options)
18
private
19
20
def violations
21
- @violations ||= style_checker.violations
+ @violations ||= style_checker.violations.reject do |violation|
22
+ return false unless violation.offenses.first.respond_to?(:disabled?)
23
+ violation.offenses.all?(&:disabled?)
24
+ end
25
end
26
27
def style_checker
0 commit comments