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
$ [bundle exec] rubocop -V
warning: parser/current is loading parser/ruby25, which recognizes
warning: 2.5.8-compliant syntax, but you are running 2.5.7.
warning: please see https://github.com/whitequark/parser#compatibility-with-ruby-mri.
1.5.1 (using Parser 2.7.2.0, rubocop-ast 1.3.0, running on ruby 2.5.7 x86_64-linux)
The text was updated successfully, but these errors were encountered:
yujideveloper
changed the title
Strange auto-correction with unwanted repetitive comments
Strange auto-correction with unwanted repetitive comments and unwanted repetitive conditions
Dec 3, 2020
…dConditional`
Fixesrubocop#9160.
This PR fixes an incorrect auto-correct for `Style/IfUnlessModifier`
and `Style/SoleNestedConditional` when auto-correction conflicts for
guard condition.
…ional`
Fixes#9160.
This PR fixes an incorrect auto-correct for `Style/IfUnlessModifier`
and `Style/SoleNestedConditional` when auto-correction conflicts for
guard condition.
I got a strange auto-correction with unwanted repetitive comments and unwanted repetitive conditions when I ran
rubocop -a
on the following codes.Expected behavior
Actual behavior
I got the following results and strange auto-correction.
Steps to reproduce the problem
Run
rubocop -a
on the following codes.RuboCop version
The text was updated successfully, but these errors were encountered: