Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve performance by making LintTask incremental #264

Open
mateuszkwiecinski opened this issue Jun 27, 2022 · 1 comment · May be fixed by #289
Open

Improve performance by making LintTask incremental #264

mateuszkwiecinski opened this issue Jun 27, 2022 · 1 comment · May be fixed by #289

Comments

@mateuszkwiecinski
Copy link
Contributor

mateuszkwiecinski commented Jun 27, 2022

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: #155 (or not? not sure what's the desired direction there)

@jeremymailen
Copy link
Owner

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.

@mateuszkwiecinski mateuszkwiecinski linked a pull request Oct 16, 2022 that will close this issue
@mateuszkwiecinski mateuszkwiecinski linked a pull request Oct 16, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants