You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
On my project we have a remote gradle cache. It is populated by our
CI
. OnCI
we runktlintCheck
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 runktintFormat
you need to run it over all the modules that were changed in the lastgit pull
instead of getting the fastFROM-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.The text was updated successfully, but these errors were encountered: