Skip to content

De-indent the closing angle bracket of the type argument list and type parameter lists in ktlint_official code style - #2302

Merged
paul-dingemans merged 2 commits into
masterfrom
2299-indent
Oct 15, 2023
Merged

paul-dingemans merged 2 commits into
masterfrom
2299-indent

Conversation

@paul-dingemans

Copy link
Copy Markdown
Member

Description

De-indent the closing angle bracket of the type argument list and type parameter lists in ktlint_official code style

This makes indentation of parenthesis, brackets and angle brackets consistent. E.g. in multiline format the elements of the list (excluding the closing token) are indented one indent level deep. The closing token is kept at the same indent level as the opening token.

Closes #2299

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
  • CHANGELOG.md is updated
  • PR description added

Documentation is updated. See difference between snapshot and release documentation

…e parameter lists in ktlint_official code style

This makes indentation of parenthesis, brackets and angle brackets consistent. E.g. in multiline format the elements of the list (excluding the closing token) are indented one indent level deep. The closing token is kept at the same indent level as the opening token.

Closes #2299
@paul-dingemans paul-dingemans added this to the 1.1 milestone Oct 12, 2023
@paul-dingemans
paul-dingemans marked this pull request as draft October 12, 2023 18:32
@paul-dingemans
paul-dingemans marked this pull request as ready for review October 15, 2023 18:21
@paul-dingemans
paul-dingemans merged commit d84711c into master Oct 15, 2023
@paul-dingemans
paul-dingemans deleted the 2299-indent branch October 15, 2023 18:22
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.

Unclear Error Message When Inheriting Generic Class

1 participant