Skip to content

Commit

Permalink
Update Rake task documentation
Browse files Browse the repository at this point in the history
We need to use `Dir.glob` to specify glob patterns.
  • Loading branch information
sds committed Sep 6, 2016
1 parent 769e352 commit 77552c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ require 'scss_lint/rake_task'
SCSSLint::RakeTask.new do |t|
t.config = 'custom/config.yml'
t.args = ['--format', 'JSON', '--out', 'results.txt']
t.files = ['app/assets', 'custom/*.scss']
t.files = Dir.glob(['app/assets', 'custom/*.scss'])
end
```

Expand All @@ -564,11 +564,11 @@ allowed by the `scss-lint` Ruby binary script. Each argument must be passed as
an Array element, rather than one String with spaces.

You can also use this custom configuration with a set of files specified via
the command line:
the command line (note that this will not expand glob patterns):

```bash
# Single quotes prevent shell glob expansion
rake 'scss_lint[app/assets, custom/*.scss]'
rake 'scss_lint[app/assets, custom/file-with-a-literal-asterisk-*.scss]'
```

Files specified in this manner take precedence over the `files` attribute
Expand Down

0 comments on commit 77552c4

Please sign in to comment.