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

IntelliJ region comments are marked as errors with klint #278

Closed
ipereziriarte opened this issue Sep 6, 2018 · 1 comment
Closed

IntelliJ region comments are marked as errors with klint #278

ipereziriarte opened this issue Sep 6, 2018 · 1 comment

Comments

@ipereziriarte
Copy link

ipereziriarte commented Sep 6, 2018

It looks like if the code contains intellij's region comments, klint reports them with
"Missing space after // (cannot be auto-corrected)"

Expected Behavior
Given a region comment like

//region LIFECYCLE
    fun onViewResumed() {
        runDisplayCountrySpecificViewsLogic()
    }
//endregion

Klint should not trigger any error

Region comments should be handled as an exception to the comment spacing rule.

Context
This is happening to me on Android Studio 3.1.4 and Detekt version 1.0.0.RC7-3

Maybe this issue is related to #273

Thoughts?

@shyiko
Copy link
Collaborator

shyiko commented Oct 2, 2018

Fixed in 0.29.0.

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

No branches or pull requests

2 participants