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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new Layout/EmptyLineAfterMultilineCondition cop #8411

Merged

Conversation

fatkodima
Copy link
Contributor

Closes #8384

This cop will also benefit from #8404 (review) (first paragraph).
@marcandre Friendly ping - have you started work on that? 馃槂

@fatkodima fatkodima changed the title Empty line after multiline condition cop Add new Layout/EmptyLineAfterMultilineCondition cop Jul 28, 2020
@koic
Copy link
Member

koic commented Jul 28, 2020

To be honest, I've never encountered this style. I think this cop should provide an alternative enforced style option and the default enforced style shouldn't insert a blank line. Or disabled by default.

@fatkodima fatkodima force-pushed the empty_line_after_multiline_condition-cop branch from 124cfeb to 14586a2 Compare August 4, 2020 16:29
@fatkodima
Copy link
Contributor Author

Made this cop disabled.

@bbatsov
Copy link
Collaborator

bbatsov commented Aug 24, 2020

I'd add a note to AirBnB's guide as a reference and mention this is disable, because that style is not very common in practice.

@fatkodima fatkodima force-pushed the empty_line_after_multiline_condition-cop branch from 14586a2 to 097d5b8 Compare August 24, 2020 08:50
@fatkodima
Copy link
Contributor Author

Added reference and note.

@bbatsov bbatsov merged commit 1788a26 into rubocop:master Aug 27, 2020
@bbatsov
Copy link
Collaborator

bbatsov commented Aug 27, 2020

Thanks!

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.

New cop: Empty line after conditions spanning multiple lines
3 participants