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

annotation-spacing dies on comments #1124

Closed
pkubowicz opened this issue Mar 26, 2021 · 0 comments · Fixed by #1168
Closed

annotation-spacing dies on comments #1124

pkubowicz opened this issue Mar 26, 2021 · 0 comments · Fixed by #1168
Labels

Comments

@pkubowicz
Copy link

Expected Behavior

I can comment on the same line as the annotation

Observed Behavior

Lint error happens:

Lint error > [experimental:annotation-spacing] Annotations should occur immediately before the annotated construct

Steps to Reproduce

@SuppressWarnings // no longer needed
fun someFun() {
}

This code should pass lint but fails on the annotation.

Your Environment

  • Version of ktlint used: 0.41.0
  • Name and version (or code for custom task) of integration used (Gradle plugin, Maven plugin, command line, custom Gradle task): Gradle plugin org.jmailen.kotlinter version 3.4.0
  • Version of Gradle used (if applicable): 6.8.3
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