Skip to content

Commit f407b82

Browse files
authored
Merge pull request #56 from mukkoo/patch-1
Better linter settings documentation
2 parents b758049 + 160000f commit f407b82

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,24 @@ You can configure rubocop exactly the way you would from the command line, using
3232
To override the config file path, you would add this to the Sublime Linter User Settings:
3333

3434
```json
35-
"rubocop": {
36-
"args": ["--config", "path/to/config.yml"]
35+
{
36+
"linters": {
37+
"rubocop": {
38+
"args": ["--config", "path/to/config.yml"]
39+
}
40+
}
3741
}
3842
```
3943

4044
### Bundler
4145
If you are using Bundler and would like to use the locked rubocop version (which will also allow you to use `inherit_gem` in `rubocop.yml`, in case you are inheriting from another gem in the project), you must set `use_bundle_exec` to true:
4246

4347
```json
44-
"rubocop": {
45-
"use_bundle_exec": true
48+
{
49+
"linters": {
50+
"rubocop": {
51+
"use_bundle_exec": true
52+
}
53+
}
4654
}
4755
```

0 commit comments

Comments
 (0)