-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
35 lines (26 loc) · 1.05 KB
/
Makefile
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
ci: fmt lint test
ci-check: fmt-check lint test
fmt: fmt-rust
fmt-check: fmt-rust-check
lint: lint-cargo-scout-audit lint-detectors lint-scout-audit-internal
fmt-rust:
@echo "Formatting Rust code..."
@./scripts/list-cargo-directories.sh | ./scripts/run-cargo-fmt.sh
fmt-rust-check:
@echo "Checking Rust code formatting..."
@./scripts/list-cargo-directories.sh | ./scripts/run-cargo-fmt.sh --check
lint-cargo-scout-audit:
@echo "Linting cargo-scout-audit..."
@cd apps/cargo-scout-audit && cargo clippy --all --all-features --quiet -- -D warnings
lint-detectors:
@echo "Linting detectors..."
@cd detectors && ../scripts/list-cargo-directories.sh | ../scripts/run-cargo-clippy.sh
lint-scout-audit-internal:
@echo "Linting scout-audit-internal..."
@cd scout-audit-internal && cargo clippy --all --all-features --quiet -- -D warnings
test:
@echo "Running tests..."
@cd apps/cargo-scout-audit && cargo nextest run -E 'not test(/tests::slow/)'
test-e2e:
@echo "Running e2e test..."
@cd apps/cargo-scout-audit && cargo nextest run -E 'test(/^tests::slow/)'