17 lines
411 B
Bash
17 lines
411 B
Bash
#!/bin/bash
|
|
|
|
# -------------------
|
|
# 0. ROOT DIRECTORY CHECK
|
|
# -------------------
|
|
|
|
# Check if the script is being run from the root directory of the repo
|
|
if [ ! -f "settings.gradle.kts" ]; then
|
|
echo "ERROR:"
|
|
echo "Please run this script from the root directory of the repo."
|
|
exit 1
|
|
fi
|
|
|
|
|
|
./gradlew lintR
|
|
open build/reports/lint/lint.html
|
|
echo "[FINISHED] Lint report opened in your default browser." |