ktlint-gradle
ktlint-gradle copied to clipboard
Add execution time of addKtlintCheck/Format hook
Although I can use time addKtlintCheckGitPreCommitHook to print out the execution time of that task, I would like that task should have log of execution time instead. Could you print that info to addKtlintCheckGitPreCommitHook and `addKtlintFormatGitPreCommitHook? Thanks.
You may want to consider looking into Gradle Build Scans or the Gradle Profiler. I think one or both of these can solve your problem.
@anticafe what is your use-case?
Usually addKtlint*GitPreCommitHook tasks should be executed manually only when developer wants to use git hook.
@Tapchicoma Sometimes I don't want to run the addKtlint*GitPreCommitHook on Pre-Commit, but run such script in Pre-Push to save time.