hey folks! have been a long since I didnt ask and help anyone here (and I apologize for that) but I have a question, if anyone can help me:
There is a way to run a pre commit hook with ktlintFormat instead ktlint? or both?
I tried to modificate the original pre commit hook installed by CLI, changing
ktlint
to
ktlintFormat
but doesnt work and I got this error
xargs: ktlintFormat: No such file or directory
c
Colton Idle
08/03/2020, 2:57 AM
I could have sworn the pre commit hook already runs ktlintFormat... Guess I was wrong.
t
tapchicoma
08/03/2020, 8:21 AM
@Colton Idle it is if it was installed via
ktlint-gradle
plugin
tapchicoma
08/03/2020, 8:22 AM
@khalil if you are using command line version of ktlint - just add