17 lines
369 B
Bash

#!/bin/sh
echo "Running formatter..."
# Format code using KtLint, analyze with KtLint & Lint
./gradlew app:ktlintKiwixDebugFormat app:ktlintKiwixDebugCheck app:lintKiwixDebug --daemon
status=$?
if [ "$status" = 0 ] ; then
echo "Static analysis found no problems."
exit 0
else
echo 1>&2 "Static analysis found violations it could not fix."
exit 1
fi