Newer
Older
openstack-caracal-ipv4 / scripts / repo-lint.sh
@JANeumatrix JANeumatrix 11 hours ago 473 bytes Patches
#!/usr/bin/env bash
# scripts/repo-lint.sh [repo-root]
#
# Thin runner for scripts/repo_lint.py (DOCFIX-074) -- static repo hygiene lint.
# Mutates NOTHING. See the .py docstring for the check catalog (L1-L6).
# Exit: 0 clean | 1 FAIL findings | 2 warnings only.  ASCII + LF.
set -uo pipefail
HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
command -v python3 >/dev/null 2>&1 || { echo "FAIL: python3 required"; exit 1; }
python3 "$HERE/repo_lint.py" "${1:-$HERE/..}"