gantsign / ktlint-maven-plugin

Maven plugin for ktlint the Kotlin linter

Home Page:http://gantsign.com/ktlint-maven-plugin/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: option to skip some rules

energister opened this issue · comments

It seems that ktlint-maven-plugin doesn't have an option to disable some rules (disabled_rules analogue of the ktlint)

@energister thanks for raising this feature request.

It's true that this Maven plugin doesn't have a configuration parameter for disabled_rules. However, It does support disabled_rules in .editorconfig files in the same way as the ktlint CLI.

Frankly, I think the .editorconfig files are a more appropriate place for this configuration than the Maven pom.xml. It also ensures other tools using ktlint use the same rules as Maven.

So unless you can provide a compelling use case for using a plugin configuration parameter instead of the .editorconfig file, I'm not inclined to implement this feature.