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

Share cache between ktlintFormat and ktlintCheck #598

Open
BraisGabin opened this issue Aug 11, 2022 · 0 comments
Open

Share cache between ktlintFormat and ktlintCheck #598

BraisGabin opened this issue Aug 11, 2022 · 0 comments

Comments

@BraisGabin
Copy link

On my project we have a remote gradle cache. It is populated by our CI. On CI we run ktlintCheck to faile the build if there's something wrong with the formatting.

The problem is that, in general, on local we use ktlintFormat so we never get a git from remote cache about this task. That means that each time you run ktintFormat you need to run it over all the modules that were changed in the last git pull instead of getting the fast FROM-CACHE from remote.

I know that this isn't a trivial fix and that it could be fixed executing ktlintFormat on CI but I think that my scenario is a really common one so maybe something could be done. I also know the state of the project right now but I just want to bring some attention over this use case.

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

No branches or pull requests

1 participant