🦀 ClawHub
Makefile Linter
by @charlie-morrison
Lint Makefiles for common issues — tabs, .PHONY, unused vars, portability, and best practices.
💡 Examples
# Report only errors and warnings
python3 scripts/makefile-linter.py lint Makefile --min-severity warningJSON output for CI integration
python3 scripts/makefile-linter.py lint Makefile --format jsonFail CI on any issue
python3 scripts/makefile-linter.py lint Makefile --strictIgnore specific rules
python3 scripts/makefile-linter.py lint Makefile --ignore recursive-make --ignore missing-cleanFull audit in Markdown (for PR comments)
python3 scripts/makefile-linter.py audit Makefile --format markdownPipe from stdin
cat Makefile | python3 scripts/makefile-linter.py lint /dev/stdin
⚙️ Configuration
| Flag | Description |
|------|-------------|
| --format text\|json\|markdown | Output format (default: text) |
| --strict | Exit code 1 on any reported issue |
| --ignore RULE | Ignore a specific rule (repeatable) |
| --min-severity error\|warning\|info | Minimum severity to report (default: info) |
TERMINAL
clawhub install makefile-linter