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
-
#config ⇒ String
Configuration file to use.
-
#files ⇒ Array<String>
List of files to lint (can contain shell globs).
-
#name ⇒ String
Name of the task.
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.
42 43 44 45 46 47 48 49 50 |
# File 'lib/scss_lint/rake_task.rb', line 42 def initialize(name = :scss_lint) @name = name @files = ['.'] # Search for everything under current directory by default @quiet = false yield self if block_given? define end |
Instance Attribute Details
#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.
39 40 41 |
# File 'lib/scss_lint/rake_task.rb', line 39 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 |