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? 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
The JetBrains Kotlin Coding Conventions suggest placing a space after //:
//
The Android Kotlin Style guide suggests placing a space before and after the double slash (//) if it begins an end-of-line comment:
Ktlint should flag lack of spaces around //.
Correct:
// comment var debugging = false // comment var debugging = false // comment//word
Incorrect:
//comment var debugging = false// comment var debugging = false //comment var debugging = false//comment
The text was updated successfully, but these errors were encountered:
It should not only flag it but also autocorrect it.
Sorry, something went wrong.
Add CommentSpacingRule for end of line comment padding (pinterest#198)
a9d1a4b
- Should add spaces before end of line comments if they are not at the beginning of a line, and add spaces after the double slash (//) if not present
Merge pull request #202 from JelloRanger/jelloranger/add-comment-spac…
4385ea5
…ing-rule Add CommentSpacingRule for end of line comment padding (#198)
Added in 4385ea5 (thanks once again, @JelloRanger!)
No branches or pull requests
The JetBrains Kotlin Coding Conventions suggest placing a space after
//
:The Android Kotlin Style guide suggests placing a space before and after the double slash (
//
) if it begins an end-of-line comment:Ktlint should flag lack of spaces around
//
.Correct:
Incorrect:
The text was updated successfully, but these errors were encountered: