kotlinter-gradle icon indicating copy to clipboard operation
kotlinter-gradle copied to clipboard

Improve performance by making `LintTask` incremental

Open mateuszkwiecinski opened this issue 2 years ago • 1 comments

Looking at the source code, running the lintKotlin will result in all the sources being checked on each task re-run.

To improve the performance, LintTask could run against changed files only (documentation)

If this gets implemented, a similar thing could be adopted for formatKotlin task (with slightly bigger effort due to overlapping inputs and outputs), but could help implementing: https://github.com/jeremymailen/kotlinter-gradle/issues/155 (or not? not sure what's the desired direction there)

mateuszkwiecinski avatar Jun 27 '22 18:06 mateuszkwiecinski

Yes, this one is on my wishlist. We're incremental at the sourceSet level, but if a sourceSet is large we might get a boost from only processing changed files in the sourceSet.

jeremymailen avatar Aug 02 '22 07:08 jeremymailen