Open petertrr opened 3 years ago
It is a very complex task. Right now, our framework - ktlint does not support this. This task will force us to write custom framework, based on the compiler plugin OR to adopt some other frameworks, like detekt
Slides from KotlinConf about plugin: https://resources.jetbrains.com/storage/products/kotlinconf2018/slides/5_Writing%20Your%20First%20Kotlin%20Compiler%20Plugin.pdf
Probably, should be done after #606. In
DiktatRule
we can implement logic adaptingc.p.k.c.Rule.visit
to kotlin's visitors, everything else should be easy to get working. Configuration options should be shared with gradle-plugin, like in detekt compiler plugin