pinterest / ktlint

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

Enforce enum names (enhancement) #2835

Closed ataulm closed 1 month ago

ataulm commented 1 month ago

Expected Rule behavior

635 enforces naming within enums as per Kotlin Coding Conventions. The style guide is liberal here, allowing 2 options.

This is great, but we'd like an enhancement to the existing rule so we can configure which of the two options are our project convention, so we can stay consistent across our codebase.