Advitiay Anand
05/16/2023, 8:07 PMSha Sha Chu
05/17/2023, 4:19 PMSha Sha Chu
05/17/2023, 4:19 PMAdvitiay Anand
05/17/2023, 6:48 PMtasks.named('check') {
dependsOn 'installKotlinterPrePushHook'
}
However, neither the 'check' task is found, nor the 'installKotlinterPrePushHook'.
What worked instead for me was this:
tasks.getByPath(':app:preBuild').dependsOn(installPreCommitHook, installKotlinterPrePushHook)
Note: installPreCommitHook is a custom Gradle Task that I made following some blog.
Now that I know how it works, I'm very happy and will likely prefer kotlinter over other ktlint plugins due to such seamless hook installation.
Thanks @Jeremy Mailen for creating an awesome tool!Sha Sha Chu
05/17/2023, 6:53 PM