lib/quality/tools/rubocop.rb in quality-20.1.0 vs lib/quality/tools/rubocop.rb in quality-20.1.1
- old
+ new
@@ -1,9 +1,13 @@
module Quality
module Tools
# Adds 'rubocop' tool support to quality gem
module Rubocop
+ def self.included(base)
+ base.extend ClassMethods
+ end
+
private
def rubocop_args
"--require rubocop-rspec --format emacs #{ruby_files.join(' ')}"
end
@@ -12,13 +16,9 @@
ratchet_quality_cmd('rubocop',
gives_error_code_on_violations: true,
args: rubocop_args) do |line|
self.class.count_rubocop_violations(line)
end
- end
-
- def self.included(base)
- base.extend ClassMethods
end
# See Rubocop.included
module ClassMethods
def count_rubocop_violations(line)