-
I have an Android project that i've set up with Detekt. Please let me know if this is the wrong place for this or i need to supply more info! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
There exists no guide on how to align
|
Beta Was this translation helpful? Give feedback.
There exists no guide on how to align
detekt-formatting
with IDEA formatting, to my knowledge.There are two solutions that I can think of.
You decide for one or the other formatting tool.
Arguably, those formatting tools differ quite a bit starting with the configuration file. Furthermore, I think it's rather a seldom use case to have two formatting tools in the same project.
You write a custom 3rd party detekt ruleset that reads the IDEA config file and configures the formatting rules of detekt according to the xml attributes you need.
detekt-formatting
wraps ktlint rules, which can be configured in detekt but not in plain ktlint. You could take a look at the implementation in the m…