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

False positives for SpacingBetweenDeclarationsWithAnnotationsRule #1125

Closed
chao2zhang opened this issue Mar 29, 2021 · 0 comments · Fixed by #1126
Closed

False positives for SpacingBetweenDeclarationsWithAnnotationsRule #1125

chao2zhang opened this issue Mar 29, 2021 · 0 comments · Fixed by #1126
Labels

Comments

@chao2zhang
Copy link
Contributor

Expected Behavior

fun foo() {
    val a

    // hello
    @Foo
    val b
}

should get empty result when checked by SpacingBetweenDeclarationsWithAnnotationsRule

Observed Behavior

The above code snipped has an error reported by SpacingBetweenDeclarationsWithAnnotationsRule

Steps to Reproduce

Use the code sample above.

Your Environment

  • Version of ktlint used: 0.41.0 / Latest main branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants