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 Positive for "Unnecessary semicolon" rule #957

Closed
Bastian opened this issue Nov 2, 2020 · 0 comments · Fixed by #958
Closed

False Positive for "Unnecessary semicolon" rule #957

Bastian opened this issue Nov 2, 2020 · 0 comments · Fixed by #958
Labels

Comments

@Bastian
Copy link

Bastian commented Nov 2, 2020

Having an empty enum class like

enum class Test {
    ;
    abstract val field: String
}

causes a false-positive in ktlint:
ktlint-bug

Your Environment

  • Version of ktlint used: 0.39.0
  • Kotlin version 1.4.10-release-411 (JRE 1.8.0_265-b01)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants