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
Unless I'm mistaken, Style/IfUnlessModifier doesn't take into account the comment in the length, to check if the modifier form will fit or not.
Style/IfUnlessModifier
if foo # this comment's length is not taken into account bar end # corrected to bar if foo # this comment's length is not taken into account
Ideally the code to calculate this should use the exact same method that actually computes the replacement...
See also #8282 and #8281
The text was updated successfully, but these errors were encountered:
[Fix rubocop#8283] Fix length calculation for Style/IfUnlessModifier
d8cf054
[Fix #8283] Fix length calculation for Style/IfUnlessModifier
34a9d79
Successfully merging a pull request may close this issue.
Unless I'm mistaken,
Style/IfUnlessModifier
doesn't take into account the comment in the length, to check if the modifier form will fit or not.Ideally the code to calculate this should use the exact same method that actually computes the replacement...
See also #8282 and #8281
The text was updated successfully, but these errors were encountered: