Skip to content

feat(FC0007): add "Statement blocks should be separated by a blank line" (opt-in) - #139

Open
MODUSCarstenScholling wants to merge 1 commit into
ALCops:mainfrom
MODUSCarstenScholling:dev-cs-statement-blocks-separated
Open

feat(FC0007): add "Statement blocks should be separated by a blank line" (opt-in)#139
MODUSCarstenScholling wants to merge 1 commit into
ALCops:mainfrom
MODUSCarstenScholling:dev-cs-statement-blocks-separated

Conversation

@MODUSCarstenScholling

Copy link
Copy Markdown
Contributor

Introduce FC0007, a disabled-by-default formatting rule that enforces blank-line separation around multi-line control-flow blocks (if, case, repeat, while, for, foreach), before scope-leaving statements (exit, built-in Error), and optionally before the else keyword of if/end-else constructs.

Configurable via alcops.json under a new StatementBlockSpacing object with five properties: ControlFlowBefore, ControlFlowAfter, ScopeLeavingMode, ElseChainBeforeMode, and OneLinerMode.

…ne" (opt-in)

Introduce FC0007, a disabled-by-default formatting rule that enforces blank-line separation around multi-line control-flow blocks (if, case, repeat, while, for, foreach), before scope-leaving statements (exit, built-in Error), and optionally before the else keyword of if/end-else constructs.

Configurable via alcops.json under a new StatementBlockSpacing object with five properties: ControlFlowBefore, ControlFlowAfter, ScopeLeavingMode, ElseChainBeforeMode, and OneLinerMode.

No CodeFix.
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.

1 participant