blob: 3c0d5fc1bf3ccd25fddb6da2195d778a23cec178 [file] [edit]
#!/bin/sh
echo "Running static analysis..."
# Run static analysis tools
./gradlew detekt
status=$?
if [ "$status" = 0 ] ; then
echo "Static analysis found no problems."
exit 0
else
echo 1>&2 "Static analysis found violations! Fix them before pushing your code!"
echo "See generated reports above or in /<project_dir>/build/reports folder"
exit 1
fi