diktat icon indicating copy to clipboard operation
diktat copied to clipboard

New framework: Investigate possibilities to run diktat as kotlin compiler plugin

Open petertrr opened this issue 4 years ago • 2 comments
trafficstars

Probably, should be done after #606. In DiktatRule we can implement logic adapting c.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

petertrr avatar Jan 27 '21 13:01 petertrr

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

orchestr7 avatar Apr 27 '22 12:04 orchestr7

Slides from KotlinConf about plugin: https://resources.jetbrains.com/storage/products/kotlinconf2018/slides/5_Writing%20Your%20First%20Kotlin%20Compiler%20Plugin.pdf

nulls avatar May 30 '22 11:05 nulls