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

Make IfUnlessModifier respect rubocop:disable comments #7449

Merged

Conversation

jonas054
Copy link
Collaborator

A bug was discovered in #7308 (comment)

When Style/IfUnlessModifier decides that a line on modifier form is too long and that it should be written on normal form, it must respect comments that disable the Metrics/LineLength cop for the line in question. If that cop is disabled, then there can be no offense.

When Style/IfUnlessModifier decides that a line on modifier form is too long
and that it should be written on normal form, it must respect comments that
disable the Metrics/LineLength cop for the line in question. If that cop is
disabled, then there can be no offense.
@jonas054 jonas054 requested a review from Drenmi October 20, 2019 20:29
Copy link
Collaborator

@Drenmi Drenmi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was amazingly fast! 🚀

@koic koic merged commit d6ceaa3 into rubocop:master Oct 21, 2019
@koic
Copy link
Member

koic commented Oct 21, 2019

Thanks!

@jonas054 jonas054 deleted the fix_IfUnlessModifier_with_disabled_LineLength branch October 23, 2019 05:12
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

Successfully merging this pull request may close these issues.

None yet

3 participants