pinterest / ktlint

An anti-bikeshedding Kotlin linter with built-in formatter
https://pinterest.github.io/ktlint/
MIT License
6.07k stars 504 forks source link

Prevent conflict when curly closing brace is followed by range (until) operator #2554

Closed paul-dingemans closed 4 months ago

paul-dingemans commented 4 months ago

Description

Prevent conflict between curly-spacing and range-spacing when curly closing brace is followed by range (until) operator

Closes #2539

Checklist

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

Documentation is updated. See difference between snapshot and release documentation

mgroth0 commented 4 months ago

This closes https://github.com/pinterest/ktlint/issues/2539 not https://github.com/pinterest/ktlint/pull/2359, right?

paul-dingemans commented 4 months ago

This closes #2539 not #2359, right?

Tnx for mentioning this. Fixed it in the description and will fix it when squash merge.