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 indent with get/set and line-separated variable assignment #599

Conversation

yukukotani
Copy link
Contributor

Fixes #550

Fix indent before get/set in case of variable assignment is in separated line, to follow IDEA's formatting.

Current

object TestObject {
    var value: String =
        "tooooooooooooooooo looooooooooooooooooooooooooong line"
        // Unexpected indentation (8) (should be 12)
        private set
}

Patched

object TestObject {
    var value: String =
        "tooooooooooooooooo looooooooooooooooooooooooooong line"
        // No error
        private set
}

Copy link
Collaborator

@Tapchicoma Tapchicoma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for fixing this issues.

@Tapchicoma Tapchicoma merged commit 7f8b89a into pinterest:master Oct 3, 2019
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.

IndentationRule issue with get/set and variable assignment on a separate line
2 participants