gantsign / ktlint-maven-plugin

Maven plugin for ktlint the Kotlin linter
http://gantsign.com/ktlint-maven-plugin/
MIT License
61 stars 17 forks source link

Poorly constructed error on enum #525

Closed JaxGibb-atlassian closed 1 year ago

JaxGibb-atlassian commented 1 year ago

For code as per

    enum class Useless {
        one
        two,
        three
    }

produced an error of 5:12 Expecting ';' after the last enum entry or '}' to close enum class body Obviously, if the missing comma is early in the list, this message doesn't help.

freemanjp commented 1 year ago

Hi, @JaxGibb-atlassian sorry for the late reply. That looks like an issue with ktlint itself rather than with the Maven plugin (this project is only for the Maven plugin).