lib/quality/tools/rubocop.rb in quality-14.0.0 vs lib/quality/tools/rubocop.rb in quality-14.1.0
- old
+ new
@@ -2,13 +2,17 @@
module Tools
# Adds 'rubocop' tool support to quality gem
module Rubocop
private
+ def rubocop_args
+ "--format emacs #{ruby_files.join(' ')}"
+ end
+
def quality_rubocop
ratchet_quality_cmd('rubocop',
gives_error_code_on_violations: true,
- args: "--format emacs #{ruby_files}") do |line|
+ args: rubocop_args) do |line|
self.class.count_rubocop_violations(line)
end
end
def self.included(base)