Sublime Forum

Rubocop - exclude error

#1

I have an error showing in the console and it is preventing Rubocop running

Error: unrecognized cop Rails found in .rubocop.yml, unrecognized cop Rails/Delegate found in .rubocop.yml

I know what the problem is - there are some cops in the rubocop file that aren’t installed. I don’t have write access to the file - I just need to configure Sublime so this error is ignored if possible. Is that possible? Rubocop runs without complaint on the run line so I’m hoping it is.

Also - can someone tell if there is a way find which files have rubocop issues inside Sublime? Or some sort of indication somewhere

Thanks

0 Likes

#2

Since you seem to have limited access to the source files, maybe you could up-/ or downgrade (not sure about the mentioned cop) your locally installed rubocop gem to a version which supports the Delegeate cop?

Regarding your second question: I usally do this on terminal (mostly with auto-correct in a clean state) and review the changes done in Sublime Merge or via terminal - in Sublime Text they are highlighted as changed too then, of course.

0 Likes