Skip to content

Stop requiring newlines between multiline blocks/expressions#263

Merged
Gudahtt merged 2 commits intomainfrom
stop-requiring-blank-lines-between-multiline-statements
Dec 12, 2022
Merged

Stop requiring newlines between multiline blocks/expressions#263
Gudahtt merged 2 commits intomainfrom
stop-requiring-blank-lines-between-multiline-statements

Conversation

@Gudahtt
Copy link
Copy Markdown
Member

@Gudahtt Gudahtt commented Dec 12, 2022

This effectively reverts #197. This rule is being removed because we have found that it forces us to introduce newlines in places where they obstruct readability rather than helping it.

When grouping statements, it is often useful to "chunk" related lines together by using a newline before and after the chunk, to denote that each of the statements are related in some way. This is often done in unit tests for example, when the "arrange", "act", "assert" grouping style is used. This rule was forcing us to break up chunks.

This effectively reverts #197. This rule is being removed because we
have found that it forces us to introduce newlines in places where they
obstruct readability rather than helping it.

When grouping statements, it is often useful to "chunk" related lines
together by using a newline before and after the chunk, to denote that
each of the statements are related in some way. This is often done in
unit tests for example, when the "arrange", "act", "assert" grouping
style is used. This rule was forcing us to break up chunks.
@Gudahtt Gudahtt requested a review from a team as a code owner December 12, 2022 18:22
Copy link
Copy Markdown

@adonesky1 adonesky1 left a comment

Choose a reason for hiding this comment

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

LGTM!

@Gudahtt Gudahtt merged commit fe32312 into main Dec 12, 2022
@Gudahtt Gudahtt deleted the stop-requiring-blank-lines-between-multiline-statements branch December 12, 2022 21:57
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.

2 participants