yujinakayama / atom-lint

Obsolete: Generic code linting support for Atom
https://atom.io/packages/atom-lint
MIT License
111 stars 33 forks source link

"_ is undefined" error when adding Rubocop exclusion #42

Closed lee-dohm closed 10 years ago

lee-dohm commented 10 years ago

I have some code where I want to exclude a cop in a very specific chunk of code. So I added the line:

# rubocop:disable NonNilCheck

And reflexively saved. After that any time I pressed RETURN, I get the console popping up with the above error message. I tried reducing it to a very simple repro, but so far I haven't been able to reproduce it except within a larger chunk of code.

The error is in violation-view.coffee:97

yujinakayama commented 10 years ago

Fixed and released 0.10.1.

You're right and it was accidentally working without error in my environment due to an installation of another package. :)

lee-dohm commented 10 years ago

Thanks!