我正在尝试将Rubocop警告显示为Sublime Text 3中的代码标记.我正在使用SublimeLinter和SublimeLinter-rubocop包.(类似的RuboCop包确实有效,但似乎不支持代码标记.)
rubocop 从rbenv shims文件夹安装并运行:
$ rubocop response_test.rb
...
1 file inspected, 11 offenses detected
Run Code Online (Sandbox Code Playgroud)
SublimeLinter正在使用rbenv垫片:
SublimeLinter: computed PATH using /bin/bash:
/Users/andrew/.rbenv/shims
/usr/local/bin
/usr/bin
/bin
/usr/sbin
/sbin
Run Code Online (Sandbox Code Playgroud)
扩展已启用:
...
"linters": {
"rubocop": {
"@disable": false,
"args": [],
"excludes": []
},
...
}
...
Run Code Online (Sandbox Code Playgroud)
但是警告没有显示,而且看起来甚至没有显示:
reloading settings Packages/User/SublimeLinter.sublime-settings
SublimeLinter: ruby: response_test.rb ['/usr/bin/ruby', '-wc']
SublimeLinter: ruby output:
Syntax OK
Run Code Online (Sandbox Code Playgroud)
有什么可以解释这个吗?我是Rubocop和Sublime Text的新手,所以我可能错过了一些基本的东西.