We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
indent
I expect the following to pass formatting.
fun broken(key: String): Letter { for (letter in Letter.values()) { if ( letter.value .equals( key, ignoreCase = true ) ) { return letter } } return Letter.B }
Fails with: Unexpected indentation (28) (should be 32) (indent)
Unexpected indentation (28) (should be 32) (indent)
enum class Letter(val value: String) { A("a"), B("b"); } fun broken(key: String): Letter { for (letter in Letter.values()) { if ( letter.value .equals( key, ignoreCase = true ) ) { return letter } } return Letter.B } fun fixed1(key: String): Letter { for (letter in Letter.values()) { if ( letter.value .equals(key, ignoreCase = true) ) { return letter } } return Letter.B } fun fixed2(key: String): Letter { for (letter in Letter.values()) { if (letter.value.equals(key, ignoreCase = true)) { return letter } } return Letter.B }
0.38.1
4.0.1
3.6
The text was updated successfully, but these errors were encountered:
This could likely be the same issue and have the same resolution as #898 (but unable to test 39.0 yet)
39.0
Sorry, something went wrong.
yes, it fails on current master
master
Successfully merging a pull request may close this issue.
Expected Behavior
I expect the following to pass formatting.
Observed Behavior
Fails with:
Unexpected indentation (28) (should be 32) (indent)
Steps to Reproduce
Your Environment
0.38.1
(command line)4.0.1
with AGP3.6
The text was updated successfully, but these errors were encountered: