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 with lambda argument, Fix #622 #627

Merged

Conversation

yukukotani
Copy link
Contributor

Resolve #622

Current

// 5:1: Unexpected indentation (16) (should be 12)
// 6:1: Unexpected indentation (12) (should be 8)
class Example {
    fun example() {
        Integer
            .parseInt("32").let {
                println("parsed $it")
            }
    }
}

// Formatted
class Example {
    fun example() {
        Integer
            .parseInt("32").let {
            println("parsed $it")
        }
    }
}

Patched

// No Error
class Example {
    fun example() {
        Integer
            .parseInt("32").let {
                println("parsed $it")
            }
    }
}

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 constantly fixing the bugs in rules!

@Tapchicoma Tapchicoma merged commit b41aa22 into pinterest:master Nov 5, 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.

IDEA/ktlint inconsistency
2 participants