I'm trying to get Rubocop warnings to show as code marks in Sublime Text 3. I'm using SublimeLinter
and the SublimeLinter-rubocop
package. (The similar RuboCop
package does work but doesn't seem to support code markings.)
rubocop
is installed and runs from the rbenv shims folder:
$ rubocop response_test.rb
...
1 file inspected, 11 offenses detected
SublimeLinter is using the rbenv shims:
SublimeLinter: computed PATH using /bin/bash:
/Users/andrew/.rbenv/shims
/usr/local/bin
/usr/bin
/bin
/usr/sbin
/sbin
The extension is enabled:
...
"linters": {
"rubocop": {
"@disable": false,
"args": [],
"excludes": []
},
...
}
...
But the warnings don't show and the linter doesn't even appear to run:
reloading settings Packages/User/SublimeLinter.sublime-settings
SublimeLinter: ruby: response_test.rb ['/usr/bin/ruby', '-wc']
SublimeLinter: ruby output:
Syntax OK
Is there anything that could account for this? I'm new to Rubocop and Sublime Text so I may have missed something basic.