Skip to content

Run Detekt as Kotlin Compiler Plugin #2119

@tyvsmith

Description

@tyvsmith

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.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions