pinterest / ktlint

An anti-bikeshedding Kotlin linter with built-in formatter
https://pinterest.github.io/ktlint/
MIT License
6.06k stars 504 forks source link

Configuration setting confusing #2627

Closed canxiangmihoyo closed 2 months ago

canxiangmihoyo commented 2 months ago

In the ktlint documentation, the Configuration setting corresponding to many rules is empty. I don’t know what it should be set in the editorconfig and what its key is.

that is good: image

this is confusing: image

paul-dingemans commented 2 months ago

The configuration settings table is only present when the rule can be configured. Most rules cannot be configured. Displaying empty tables would also be confusing.