saveourtool / diktat-demo

Demo project to show how diKTat or KTlint rule-sets can fix style issues in your code.
14 stars 2 forks source link

Add other open-source analyzers? #43

Open orchestr7 opened 3 years ago

orchestr7 commented 3 years ago

May be we will also add detekt, ktfmt or any other analyzer?

petertrr commented 2 years ago

I think before this we should rework the architecture of the application. Now we load all analyzers (ktlint and diktat) using the same classloader as the app itself, and it forces us to keep only compatible versions of ktlint and diktat and even keep Kotlin version in the app the same, as required for diktat operation. If we load analyzers in isolated classloaders, then we can support multiple version of the same analyzer and easily integrate new ones.