We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Style/SpaceAfterNot does not force keyword not occurences to lose their space:
Style/SpaceAfterNot
not
not foo
notfoo
Create a file called repro.rb:
repro.rb
foo if not bar
Run:
$ rubocop repro.rb --only Style/SpaceAfterNot
(Alternatively disable the cop Style/Not via your config file, which should be quite a legit use case)
Style/Not
Include the output of rubocop -V:
rubocop -V
$ rubocop -V 0.40.0 (using Parser 2.3.1.0, running on ruby 2.3.0 x86_64-linux)
The text was updated successfully, but these errors were encountered:
I am working on a fix...
Sorry, something went wrong.
Fix Style/SpaceAfterNot reporting on the not keyword
94dfdf5
Fixes rubocop#3155
28d14c0
Fix Style/SpaceAfterNot reporting on the not keyword (rubocop#3156)
9591afc
No branches or pull requests
Expected behavior
Style/SpaceAfterNot
does not force keywordnot
occurences to lose their space:not foo
notfoo
Actual behavior
not foo
notfoo
Steps to reproduce the problem
Create a file called
repro.rb
:Run:
(Alternatively disable the cop
Style/Not
via your config file, which should be quite a legit use case)RuboCop version
Include the output of
rubocop -V
:The text was updated successfully, but these errors were encountered: