|
1 | 1 | # Static Analysis Tools Repository Makefile |
2 | 2 |
|
3 | | -.PHONY: render render-skip-deprecated check clippy fmt test clean help |
| 3 | +.PHONY: render render-skip-deprecated check clippy fmt fmt-check test clean help |
4 | 4 |
|
5 | 5 | # Default target shows help |
6 | 6 | help: |
7 | 7 | @echo "Available targets:" |
8 | 8 | @echo " render - Render README.md and JSON API from YAML sources" |
9 | | - @echo " render-skip-deprecated - Render without deprecated tools" |
| 9 | + @echo " render-skip-deprecated - Render using cached deprecation data (no GitHub requests)" |
10 | 10 | @echo " check - Run cargo check" |
11 | 11 | @echo " clippy - Run clippy lints" |
12 | 12 | @echo " fmt - Format Rust code" |
| 13 | + @echo " fmt-check - Check Rust formatting without changing files" |
13 | 14 | @echo " test - Run tests" |
14 | 15 | @echo " clean - Clean build artifacts" |
15 | 16 | @echo " help - Show this help" |
16 | 17 |
|
17 | 18 | # Main rendering targets |
18 | 19 | render: |
19 | | - cargo run --manifest-path ci/Cargo.toml -p render -- --tags data/tags.yml --tools data/tools --collections data/collections --md-out README.md --json-out data/api |
| 20 | + cargo run --manifest-path ci/Cargo.toml --locked -p render -- --tags data/tags.yml --tools data/tools --collections data/collections --md-out README.md --json-out data/api |
20 | 21 |
|
21 | 22 | render-skip-deprecated: |
22 | | - cargo run --manifest-path ci/Cargo.toml -p render -- --tags data/tags.yml --tools data/tools --collections data/collections --md-out README.md --json-out data/api --skip-deprecated |
| 23 | + cargo run --manifest-path ci/Cargo.toml --locked -p render -- --tags data/tags.yml --tools data/tools --collections data/collections --md-out README.md --json-out data/api --skip-deprecated |
23 | 24 |
|
24 | 25 | # Development targets |
25 | 26 | check: |
26 | | - cargo check --manifest-path ci/Cargo.toml |
| 27 | + cargo check --manifest-path ci/Cargo.toml --workspace --all-targets --locked |
27 | 28 |
|
28 | 29 | clippy: |
29 | 30 | cargo clippy --manifest-path ci/Cargo.toml --workspace --all-targets --all-features --locked -- -D warnings |
30 | 31 |
|
31 | 32 | fmt: |
32 | | - cargo fmt --manifest-path ci/Cargo.toml |
| 33 | + cargo fmt --manifest-path ci/Cargo.toml --all |
| 34 | + |
| 35 | +fmt-check: |
| 36 | + cargo fmt --manifest-path ci/Cargo.toml --all --check |
33 | 37 |
|
34 | 38 | test: |
35 | 39 | cargo test --manifest-path ci/Cargo.toml --workspace --all-targets --all-features --locked |
|
0 commit comments