Skip to content

K&R-style else formatting #153

@mashehu

Description

@mashehu

Any chance that instead of the current Allman style:

}
else {

we could get K&R style:

} else {

Coming from javascript/python, I had problems parsing the newer version as connected to the previous if statement.
Groovy seems to follow K&R in its style guide https://groovy-lang.org/style-guide.html#_return_keyword_optional

An example of the switch from K&R to Allman style: https://github.com/nf-core/tools/pull/4135/changes#diff-61257db195c5fed111b4969db3e5604b80dc9f17c22edd1fde7bead023488fd7R65-R68

Metadata

Metadata

Assignees

No one assigned

    Labels

    formattingRelated to automatic code formatting

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions