GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||
GeezerVison is showing github.com — Add multiline-loop to complement multiline-if-else by hanggrian · Pull Request #2298 · ktlint/ktlint Conversation
|
|
Tnx for your contribution. I will have a look after |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Hi Paul. I understand, thanks for your response. And also for pointing out the bracing difference between Kotlin and Android style guides. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Well done! I see that you picked up quite some conventions of the project. Please address the remarks.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
| for (i in 1..10) return 0 | ||
| while (true) return 0 | ||
| do return 0 while (true) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
According to Android style guide:
Braces are otherwise required for any if, for, when branch, do, and while statements and expressions, even when the body is empty or contains only a single statement.
Kotlin style guide does not mention it explicitly, but I am fine with imposing this on code styles.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.