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