lib/phare/check/rubocop.rb in phare-0.5 vs lib/phare/check/rubocop.rb in phare-0.5.1
- old
+ new
@@ -4,14 +4,16 @@
class Rubocop < Check
def initialize(directory, options = {})
@path = directory
@extensions = %w(.rb)
@options = options
+
+ super
end
def command
- if tree_changed?
- "rubocop #{tree_changes.join(' ')}"
+ if @tree.changed?
+ "rubocop #{@tree.changes.join(' ')}"
else
'rubocop'
end
end