2

I'm using Rubocop alongside SublimeLinter and we also included it on our continuous integration server, so there is a rubocop.yml on the root of our project.

The file in the root is the one the CI uses to validate the code, but it is not as strict as I want it to be in Sublime.

Is there a way to specify the yml file that I want Rubocop to use in Sublime?

4

1 回答 1

2

您可以在 .rubocop.yml 文件中设置规则,以便 sublimelinter 适合您的新样式,或者如果您希望更新配置路径,请使用

"rubocop": {
"args": ["--config", "path/to/config.yml"]}
于 2015-03-22T00:43:50.793 回答