-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
76 lines (56 loc) · 2.29 KB
/
Makefile
File metadata and controls
76 lines (56 loc) · 2.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
DEVRAIL_IMAGE ?= ghcr.io/devrail-dev/dev-toolchain:v1
DOCKER_RUN ?= docker run --rm -v "$$(pwd):/workspace" -w /workspace $(DEVRAIL_IMAGE)
.DEFAULT_GOAL := help
.PHONY: help lint format fix test security scan docs check install-hooks
.PHONY: _lint _format _fix _test _security _scan _docs _check
help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | \
awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
lint: ## Run all linters
$(DOCKER_RUN) make _lint
fix: ## Auto-fix formatting issues in-place
$(DOCKER_RUN) make _fix
format: ## Run all formatters
$(DOCKER_RUN) make _format
test: ## Run all tests
$(DOCKER_RUN) make _test
security: ## Run security scanners
$(DOCKER_RUN) make _security
scan: ## Run full scan (lint + security)
$(DOCKER_RUN) make _scan
docs: ## Generate documentation
$(DOCKER_RUN) make _docs
check: ## Run all checks (lint, format, test, security, docs)
$(DOCKER_RUN) make _check
install-hooks: ## Install pre-commit hooks
pre-commit install
pre-commit install --hook-type pre-push
_lint:
# Internal target — runs inside container
# Requires dev-toolchain container (Epic 2)
@echo "lint: not yet implemented — requires dev-toolchain container"
_format:
# Internal target — runs inside container
@echo "format: not yet implemented — requires dev-toolchain container"
_fix:
# Internal target — runs inside container
@echo "fix: not yet implemented — requires dev-toolchain container"
_test:
# Internal target — runs inside container
# Requires dev-toolchain container (Epic 2)
@echo "test: not yet implemented — requires dev-toolchain container"
_security:
# Internal target — runs inside container
# Requires dev-toolchain container (Epic 2)
@echo "security: not yet implemented — requires dev-toolchain container"
_scan:
# Internal target — runs inside container
# Requires dev-toolchain container (Epic 2)
@echo "scan: not yet implemented — requires dev-toolchain container"
_docs:
# Internal target — runs inside container
# Requires dev-toolchain container (Epic 2)
@echo "docs: not yet implemented — requires dev-toolchain container"
_check: _lint _format _test _security _scan _docs
# Internal target — orchestrates all checks inside container
@echo "check: all checks complete"