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

"Missing space after //" and IntelliJ IDEA #298

Closed
thauk-copperleaf opened this issue Oct 19, 2018 · 3 comments
Closed

"Missing space after //" and IntelliJ IDEA #298

thauk-copperleaf opened this issue Oct 19, 2018 · 3 comments

Comments

@thauk-copperleaf
Copy link

thauk-copperleaf commented Oct 19, 2018

When commenting out a line in IntelliJ IDEA -- made by JetBrains, who of course also makes Kotlin -- a space is not added after the //. This is frustrating because ktlint requires this by default. So every time I comment out a block of lines, I have to tediously add extra spaces. And when uncommenting a line, the extra space is not removed.

Could this considered a bug in IntelliJ (because they don't agree with a specification regarding comment format) or an overly-strong rule in ktlint (because no such spec exists)?

@shyiko
Copy link
Collaborator

shyiko commented Feb 12, 2019

Space after // enforced in cd3cfc8.
That being said, ability to disable rules on per-file basis is coming in #208.

@vincent-paing
Copy link

What's the name of this rule to disable it?

@Tapchicoma
Copy link
Collaborator

Name is "comment-spacing".

@pinterest pinterest locked as resolved and limited conversation to collaborators May 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants