Is there any clear list of rules in the standard r...
# ktlint
d
Is there any clear list of rules in the standard rule sets? I'm considering migrating from
intellij_idea
to
ktlint_official
and would like to know upfront which changes I should be expecting to make.
p
The exact list of rules depends on your
.editorconfig
. You can run Ktlint CLI with option
--log-level=debug
which will list all rules that will be run given your configuration. Example:
Copy code
17:34:56.603 [pool-1-thread-4] DEBUG com.pinterest.ktlint.rule.engine.internal.RuleProviderSorter -- Rules will be executed in order below:
           - internal:ktlint-suppression, 
           - standard:annotation-spacing, 
           - standard:binary-expression-wrapping, 
           - standard:blank-line-before-declaration, 
           - standard:chain-wrapping, 
           - standard:class-naming,
d
I'm asking specifically about the plain rule sets
intellij_idea
and
ktlint_official
, i.e. without any local modifications. In other words, which rules are in
ktlint_official
that are not in
intellij_idea
🙂
p
Yes, I understood. I don't have such a list. But just set
ktlint_code_style=ktlint_official
in your
.editorconfig
and run it. Do it one more time for
intellij_idea
and compare results.
👍 1