Skip to content

Add configuration setting for ignoring argument-list-wrapping above treshold of parameters#2481

Merged
paul-dingemans merged 5 commits intomasterfrom
2461-argument-list-wrapping
Jan 23, 2024
Merged

Add configuration setting for ignoring argument-list-wrapping above treshold of parameters#2481
paul-dingemans merged 5 commits intomasterfrom
2461-argument-list-wrapping

Conversation

@paul-dingemans
Copy link
Copy Markdown
Collaborator

Description

Add configuration setting for ignoring argument-list-wrapping above treshold of parameters

Breaking change: For code style ktlint_official the default value for this setting has default unset which is different from previous default value 8. Not wrapping parameters should be a conscious decision of the developer. This can either be done on a case by case basis by suppressing the rule, or by configuring the parameter.

Closes #2461

Checklist

Before submitting the PR, please check following (checks which are not relevant may be ignored):

  • Commit message are well written. In addition to a short title, the commit message also explain why a change is made.
  • At least one commit message contains a reference Closes #<xxx> or Fixes #<xxx> (replace<xxx> with issue number)
  • Tests are added
  • KtLint format has been applied on source code itself and violations are fixed
  • PR title is short and clear (it is used as description in the release changelog)
  • PR description added (background information)

Documentation is updated. See difference between snapshot and release documentation

  • Snapshot documentation in case documentation is to be released together with a code change
  • Release documentation in case documentation is related to a released version of ktlint and has to be published as soon as the change is merged to master

… treshold of parameters

Breaking change: For code style `ktlint_official` the default value for this setting has default `unset` which is different from previous default value `8`. Not wrapping parameters should be a conscious decision of the developer. This can either be done on a case by case basis by suppressing the rule, or by configuring the parameter.

Closes #2461
@paul-dingemans paul-dingemans merged commit 66d4854 into master Jan 23, 2024
@paul-dingemans paul-dingemans deleted the 2461-argument-list-wrapping branch January 23, 2024 13:06
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.

argument-list-wrapping stops working with too many arguments

1 participant