How does DIKTAT COMMON work #1265
-
|
Hi Team,
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Hi! |
Beta Was this translation helpful? Give feedback.
-
|
Hi Team,
|
Beta Was this translation helpful? Give feedback.
-
|
Hi! |
Beta Was this translation helpful? Give feedback.
Hi!
DIKTAT_COMMONis not a rule, it is a set of options that can be used by all other rules. Disabling or enabling it should have no effect, IIRC.kotlinVersionis used in some rules to determine, which language features are available. Diktat accepts both minor (like 1.5) and patch version (like 1.5.31).The most important option in
DIKTAT_COMMONisdomainName, as it's used for checking package naming.Diktat doesn't run ktlint, but diktat uses ktlint core as a framework. I.e., when invoked from spotless, only diktat ruleset is loaded and executed. Ktlint core loads editorconfig, but diktat doesn't use it, it uses only yaml config.