To improve the feedback cycle of errors to the developer and the possible performance when doing type resolution, Detekt could be implemented to run as a Kotlin compiler plugin. This would bring the behavior closer to a tool like ErrorProne.
We're investigating this internally at Uber to see if we can get any wins out of this approach.
A naive approach/prototype would be to use the AnalysisHandlerExtension, like the JVM ABI plugin and visit the KtFiles.
A more interested approach, would be to figure out wiring for the existing checkers based on CallChecker.
To improve the feedback cycle of errors to the developer and the possible performance when doing type resolution, Detekt could be implemented to run as a Kotlin compiler plugin. This would bring the behavior closer to a tool like ErrorProne.
We're investigating this internally at Uber to see if we can get any wins out of this approach.
A naive approach/prototype would be to use the AnalysisHandlerExtension, like the JVM ABI plugin and visit the KtFiles.
A more interested approach, would be to figure out wiring for the existing checkers based on CallChecker.