-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (25 loc) · 1.14 KB
/
Makefile
File metadata and controls
29 lines (25 loc) · 1.14 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
.PHONY: lint-markdown
lint-markdown: ## Check Markdown files with markdownlint
@echo "Checking Markdown files..."
@command -v markdownlint >/dev/null 2>&1 || { echo "Installing markdownlint-cli..."; npm install -g markdownlint-cli; }
@markdownlint "**/*.md" --ignore node_modules/
@echo "Markdown linting passed!"
.PHONY: lint-zizmor
lint-zizmor: ## Run zizmor audit on workflows
@echo "Running zizmor audit..."
@zizmor --no-config --min-severity high .
.PHONY: lint-yaml
lint-yaml: ## Check YAML files with yamllint
@echo "Checking YAML files..."
@command -v yamllint >/dev/null 2>&1 || { echo "Installing yamllint..."; pip install yamllint; }
@yamllint .github/workflows/ || true
@echo "YAML linting passed!"
.PHONY: lint-editorconfig
lint-editorconfig: ## Check EditorConfig compliance
@echo "Checking EditorConfig compliance..."
@command -v editorconfig-checker >/dev/null 2>&1 || { echo "Installing editorconfig-checker..."; npm install -g editorconfig-checker; }
@editorconfig-checker
@echo "EditorConfig check passed!"
.PHONY: test
test: lint-editorconfig lint-markdown lint-yaml lint-zizmor
@echo "All validation and quality checks passed!"