Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indent multiline expression #1872

Merged
merged 5 commits into from
Mar 19, 2023
Merged

Conversation

paul-dingemans
Copy link
Collaborator

Description

Allow value arguments with a multiline expression to be indented on a separate line.
Closes #1217

Add experimental rule multiline-expression-wrapping for ktlint_official code style which forces multiline expressions to start on a separate line.

Checklist

  • PR description added
  • tests are added
  • KtLint has been applied on source code itself and violations are fixed
  • documentation is updated
  • CHANGELOG.md is updated

In case of adding a new rule:

@paul-dingemans paul-dingemans added this to the 0.49.0 milestone Mar 19, 2023
@paul-dingemans paul-dingemans merged commit e7fc755 into master Mar 19, 2023
@paul-dingemans paul-dingemans deleted the 1217-value-argument-indent branch March 19, 2023 15:58
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.

Indentation change since 0.38.1
1 participant