Is there a list of all the rule names? I’ve been s...
# ktlint
j
Is there a list of all the rule names? I’ve been searching and can’t find one. I’m looking for the rule names in the
no-wildcard-imports
format that I can use to disable certain rules.
s
Ah, there's no one place to look - it's in the code for the rules itself
That's a good suggestion though, to put it in the README or something
💯 1
It'll be something like
MyRule : Rule("rule-id-here")
👍 1
You can also run with --verbose and it should spit out the id of the rule that's causing the violation
🙌 1
j
I might check that out, I’m currently implementing ktlint in our codebase using the gradle plugin from JLLeitschuh and attempting to get a sane set of rules that won’t create a massive PR from the first auto format (we were using the Intellij kotlin style sheet)
But yeah, that would be a nice list to have for people trying to tune ktlint beyond the defaults 🙂
s
If you wouldn't mind, could you file an issue on our GitHub? Otherwise I'm likely to forget this conversation immediately :)
j
Will do
152 Views