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

Fix indentation of the body block/expression of the getter/setter #1468

Conversation

paul-dingemans
Copy link
Collaborator

@paul-dingemans paul-dingemans commented May 12, 2022

Description

Fix indentation of the body block/expression of the getter/setter of a property when that property is followed by an initializer on a separate line.

Closes #1335

Checklist

  • PR description added
  • tests are added
  • CHANGELOG.md is updated

In case of adding a new rule:

  • README.md is updated
  • Rule has been applied on Ktlint itself and violations are fixed

…a property when that property is followed by an initializer on a separate line.

Closes 1335
@paul-dingemans paul-dingemans added this to the 0.46.0 milestone May 12, 2022
= added 5 commits May 12, 2022 20:33
# Conflicts:
#	CHANGELOG.md
#	ktlint-ruleset-standard/src/test/kotlin/com/pinterest/ktlint/ruleset/standard/IndentationRuleTest.kt
@paul-dingemans paul-dingemans merged commit 00890c5 into pinterest:master May 20, 2022
@paul-dingemans paul-dingemans deleted the 1335-indent-property-getter-setter branch May 20, 2022 19:10
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.

Incorrect indent for a property that wraps to two lines and has a custom getter or setter
1 participant