fix(validation): restore isolated local checks

This commit is contained in:
2026-10-30 04:21:56 -03:00
parent e0f2026a2f
commit 8a560b8e6e
36 changed files with 586 additions and 227 deletions
+4 -17
View File
@@ -1,8 +1,7 @@
.PHONY: lint test build clean ci
lint:
shellcheck unleash lib/*.sh 2>/dev/null || brew install shellcheck && shellcheck unleash lib/*.sh
bash -n unleash lib/*.sh
python3 scripts/check-shell.py
test:
bats tests/*.bats
@@ -13,18 +12,6 @@ build:
clean:
rm -f unleash-standalone.sh
ci:
@echo "=== ShellCheck ===" && \
for f in unleash lib/*.sh examples/*.sh; do \
[ -f "$$f" ] || continue; \
echo " $$f"; shellcheck -S warning "$$f" || fail=1; \
done && \
echo "=== Bash Syntax ===" && \
for f in unleash lib/*.sh examples/*.sh; do \
[ -f "$$f" ] || continue; \
bash -n "$$f" || fail=1; \
done && \
echo "=== Markdown ===" && \
npx markdownlint-cli '*.md' || true && \
echo "=== All checks done ===" && \
[ -z "$$fail" ] || exit 1
ci: lint test
@echo "=== Markdown ==="
npx markdownlint-cli '*.md' || true