Yes, sure. Actually, I figured it out.
The issue was that docs say that inserting this snippet at the end of my build.gradle file (Groovy) should automatically install the pre-push hook on every build.
tasks.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!