0

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:

enter image description here

Error in console:

enter image description here

This is my config.cson:

...

"linter-rubocop":
  command: "rubocop -R"
binarymason
  • 1,351
  • 1
  • 14
  • 31

1 Answers1

0

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.

ollpu
  • 1,783
  • 15
  • 26