Files
mongo/bazel/lint.sh
Zack Winter 7ccc14bf91 SERVER-101034 Use rules_lint shfmt formatter (#38448)
GitOrigin-RevId: e8ef1ba2000e12fa2cd5a115a9ceeab92332e938
2025-07-16 01:55:34 +00:00

16 lines
402 B
Bash
Executable File

# placeholder for bazel/wrapper_hook/lint.py
RED='\033[0;31m'
GREEN='\033[0;32m'
NO_COLOR='\033[0m'
if [[ $1 == "ALL_PASSING" ]]; then
echo -e "${GREEN}INFO:${NO_COLOR} No linter errors found!"
exit 0
fi
echo -e "${RED}ERROR:${NO_COLOR} Linter run failed, see details above"
echo -e "${GREEN}INFO:${NO_COLOR} Run the following to try to auto-fix the errors:\n\nbazel run lint --fix"
exit 1