Skip to content

Expose multiline parameter in ClassSignature#9084

Open
FilippoVigani wants to merge 2 commits intodetekt:mainfrom
FilippoVigani:issue9083
Open

Expose multiline parameter in ClassSignature#9084
FilippoVigani wants to merge 2 commits intodetekt:mainfrom
FilippoVigani:issue9083

Conversation

@FilippoVigani
Copy link
Copy Markdown

Addresses #9083.

@detekt-ci
Copy link
Copy Markdown
Collaborator

Warnings
⚠️ It looks like this PR contains functional changes without a corresponding test.

Generated by 🚫 dangerJS against c2b26d4

ClassSignature:
active: true
autoCorrect: true
forceMultilineWhenParameterCountGreaterOrEqualThan: 'unset'
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is really long. Could we shorten it a bit? forceMultilineWhenParamCount or multilineWhenParamThreshold

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Arguably it could be improved yeah.

I wrote it this way to maintain consistency with FunctionSignature's parameter.

In this case would you favor readability over being consistent albeit overly verbose? On the one hand it's very long, on the other it's consistent with ktlint parameters, like the ones introduced in #5256.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants