简体   繁体   中英

How to configure Atom linter-rubocop to run --rails flag always

I'm getting conflicting cops between my IDE and the console. How do I have Atom's linter-rubocop to always run with the --rails flag?

Error in Atom:

在此处输入图片说明

Error in console:

在此处输入图片说明

This is my config.cson :

...

"linter-rubocop":
  command: "rubocop -R"

The settings-page for linter-rubocop describes that the command -option should be provided with an absolute path. That is, the output of which rubocop . Then you can add the parameter.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM