Skip to content

Commit

Permalink
cortinico#351 align kotlinLangStyle with upstream ktfmt style (cortin…
Browse files Browse the repository at this point in the history
  • Loading branch information
simonhauck authored Aug 26, 2024
1 parent fc89b27 commit ca7a968
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ This file follows [Keepachangelog](https://keepachangelog.com/) format.
Please add your entries according to this format.

## Unreleased
- Set 'manageTrailingCommas' to 'true' for kotlinLangStyle to align with ktfmt 0.52

## Version 0.20.0 _(2024-08-25)_

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ abstract class KtfmtExtension {
fun kotlinLangStyle() {
blockIndent.set(4)
continuationIndent.set(4)
manageTrailingCommas.set(true)
}

internal fun toFormattingOptions(): FormattingOptionsBean =
Expand Down

0 comments on commit ca7a968

Please sign in to comment.