hey folks! have been a long since I didnt ask and ...
# ktlint
k
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
I could have sworn the pre commit hook already runs ktlintFormat... Guess I was wrong.
t
@Colton Idle it is if it was installed via
ktlint-gradle
plugin
@khalil if you are using command line version of ktlint - just add
-F
flag to installed hook
🤘 1
k
thanks @tapchicoma