Files
openclaw-mattermost/Makefile
Xen 97ec347b3a chore: add missing repo policy files (auto-enforced)
Applied 7 policy files via audit-repo-policies.sh.
Repo type: shell
Files: Makefile .editorconfig .prettierrc .prettierignore .dockerignore .gitignore tools/secret-scan.sh
2026-03-02 10:55:17 +00:00

29 lines
686 B
Makefile

.PHONY: check test lint fmt fmt-check secret-scan
check: lint fmt-check secret-scan test
test:
@echo "Running tests..."
@if [ -d tests ] && ls tests/test-*.sh >/dev/null 2>&1; then \
for t in tests/test-*.sh; do echo " $$t"; bash "$$t"; done; \
else \
echo " No tests found"; \
fi
lint:
@echo "Linting..."
@if command -v shellcheck >/dev/null 2>&1; then \
find . -name '*.sh' -not -path './.git/*' -not -path './node_modules/*' -exec shellcheck {} +; \
else \
echo " shellcheck not installed, skipping"; \
fi
fmt:
@echo "No formatter configured for shell scripts"
fmt-check:
@echo "No format check for shell scripts"
secret-scan:
bash tools/secret-scan.sh .