How to run the pre-commit hook only for changed files #3632
-
I like the idea of the pre-commit hook but running detekt for all files takes a while and isn't really necessary. I read here that it is possible to run the hook only for the changed files and this should speed up the process. How would I do this with gradle? Or is only possible/more convenient using the CLI? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I know little about gradle to be honest. But the gradle plugin has a |
Beta Was this translation helpful? Give feedback.
-
This has been answered in the following threads. Please have a look here: |
Beta Was this translation helpful? Give feedback.
This has been answered in the following threads. Please have a look here: