Class: SCSSLint::RakeTask
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- SCSSLint::RakeTask
- Defined in:
- lib/scss_lint/rake_task.rb
Overview
Rake task for scss-lint CLI.
You can also specify the list of files as explicit task arguments:
Instance Attribute Summary collapse
-
#args ⇒ Array<String>
Command-line args to use.
-
#config ⇒ String
Configuration file to use.
-
#files ⇒ Array<String>
List of files to lint (can contain shell globs).
-
#name ⇒ String
Name of the task.
-
#quiet ⇒ true, false
Whether output from SCSS-lint should not be displayed to the standard out stream.
Instance Method Summary collapse
-
#initialize(name = :scss_lint) {|_self| ... } ⇒ RakeTask
constructor
Create the task so it is accessible via Rake::Task.
Constructor Details
#initialize(name = :scss_lint) {|_self| ... } ⇒ RakeTask
Create the task so it is accessible via Rake::Task.
51 52 53 54 55 56 57 58 59 |
# File 'lib/scss_lint/rake_task.rb', line 51 def initialize(name = :scss_lint) @name = name @files = [] @quiet = false yield self if block_given? define end |
Instance Attribute Details
#args ⇒ Array<String>
Command-line args to use.
36 37 38 |
# File 'lib/scss_lint/rake_task.rb', line 36 def args @args end |
#config ⇒ String
Configuration file to use.
32 33 34 |
# File 'lib/scss_lint/rake_task.rb', line 32 def config @config end |
#files ⇒ Array<String>
List of files to lint (can contain shell globs).
Note that this will be ignored if you explicitly pass a list of files as task arguments via the command line or in the task definition.
43 44 45 |
# File 'lib/scss_lint/rake_task.rb', line 43 def files @files end |
#name ⇒ String
Name of the task.
28 29 30 |
# File 'lib/scss_lint/rake_task.rb', line 28 def name @name end |
#quiet ⇒ true, false
Whether output from SCSS-lint should not be displayed to the standard out stream.
48 49 50 |
# File 'lib/scss_lint/rake_task.rb', line 48 def quiet @quiet end |