You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting a undefined method 'source' for nil:NilClass error when I use rubocop with the --auto-correct argument. The cops Performance/StartWith and Performance/EndWith seem to be affected. If I run rubocop without them it works, i.e.rubocop -D --except Performance/StartWith,Performance/EndWith --auto-correct. It happens at least with rubocop v. 0.39.0.
The offending line for Performance/EndWith looks like this: expect(subject.spin).to match(/\n\n\n\n\z/)
The offending line for Performance/StartWith looks like this: expect(unspun).to match(/\AParagraph/)
I'm getting a
undefined method 'source' for nil:NilClass
error when I use rubocop with the--auto-correct
argument. The cops Performance/StartWith and Performance/EndWith seem to be affected. If I run rubocop without them it works, i.e.rubocop -D --except Performance/StartWith,Performance/EndWith --auto-correct
. It happens at least with rubocop v. 0.39.0.The offending line for Performance/EndWith looks like this:
expect(subject.spin).to match(/\n\n\n\n\z/)
The offending line for Performance/StartWith looks like this:
expect(unspun).to match(/\AParagraph/)
output:
The text was updated successfully, but these errors were encountered: