Skip to content
New issue

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 breaking for "not" #3155

Closed
NobodysNightmare opened this issue May 23, 2016 · 1 comment
Closed

Style/SpaceAfterNot breaking for "not" #3155

NobodysNightmare opened this issue May 23, 2016 · 1 comment

Comments

@NobodysNightmare
Copy link
Contributor

NobodysNightmare commented May 23, 2016

Expected behavior

Style/SpaceAfterNot does not force keyword not occurences to lose their space:

  • It does not report an offense for not foo
  • It does not auto correct it to notfoo

Actual behavior

  • It does report an offense for not foo
  • It does auto correct it to notfoo

Steps to reproduce the problem

Create a file called 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)

RuboCop version

Include the output of rubocop -V:

$ rubocop -V
0.40.0 (using Parser 2.3.1.0, running on ruby 2.3.0 x86_64-linux)
@NobodysNightmare
Copy link
Contributor Author

I am working on a fix...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant