Class: Phare::Check::Rubocop
- Inherits:
-
Phare::Check
- Object
- Phare::Check
- Phare::Check::Rubocop
- Defined in:
- lib/phare/check/rubocop.rb
Instance Attribute Summary
Attributes inherited from Phare::Check
Instance Method Summary collapse
- #command ⇒ Object
-
#initialize(directory, options = {}) ⇒ Rubocop
constructor
A new instance of Rubocop.
Methods inherited from Phare::Check
Constructor Details
#initialize(directory, options = {}) ⇒ Rubocop
Returns a new instance of Rubocop.
5 6 7 8 9 10 11 |
# File 'lib/phare/check/rubocop.rb', line 5 def initialize(directory, = {}) @path = directory @extensions = %w(.rb) @options = super end |
Instance Method Details
#command ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/phare/check/rubocop.rb', line 13 def command if @tree.changed? "rubocop #{files_to_check.join(' ')}" else 'rubocop' end end |