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
The text was updated successfully, but these errors were encountered:
zw963
changed the title
rubocop -a cause syntax error with Style/SoleNestedConditional cop on version 1.27 + ruby 3.1
rubocop -a cause logic error with Style/SoleNestedConditional cop on version 1.27 + ruby 3.1
Apr 12, 2022
… causes logical error when using a outer condition of method call by omitting parentheses for method arguments.
Update changelog/fix_autocorrect_for_style_sole_nested_confitional.md
Co-authored-by: Koichi ITO <koic.ito@gmail.com>
Update spec/rubocop/cop/style/sole_nested_conditional_spec.rb
Co-authored-by: Koichi ITO <koic.ito@gmail.com>
Thanks you for quick fixs, i consider this is a safe cops, and will cause imperceptible error when run rubocop -a, so if consider release a patch version this or next week?
Following is a sample.
After run rubocop -a or used with solargraph, it will be change to:
That was not expected, it should be:
The text was updated successfully, but these errors were encountered: