forked from ROOH/openclaw-caldav
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
This commit is contained in:
28
Makefile
Normal file
28
Makefile
Normal file
@@ -0,0 +1,28 @@
|
||||
.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 .
|
||||
Reference in New Issue
Block a user