8 lines
271 B
Bash
Raw Normal View History

2021-03-09 10:53:29 +01:00
#!/bin/bash
if which ktlint >/dev/null; then
cd android && ktlint --color --relative --editorconfig=./.editorconfig -F ./**/*.kt*
2021-03-09 10:53:29 +01:00
else
2023-09-25 13:04:22 +02:00
echo "warning: KTLint not installed, install with 'brew install ktlint' (or manually from https://github.com/pinterest/ktlint)"
2021-03-09 10:53:29 +01:00
fi