Skip to content

Commit e1e6e7f

Browse files
authored
Merge pull request #1919 from itowlson/who-will-rid-me-of-this-turbulent-linter
Report `cargo fmt` and `clippy` errors more quickly
2 parents 0ae6ec4 + 131265c commit e1e6e7f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,12 @@ jobs:
3838
rust-wasm: true
3939
rust-cache: true
4040

41-
- name: Run lints
41+
- name: Run lints on main code
4242
run: BUILD_SPIN_EXAMPLES=0 make lint
4343

44+
- name: Run lints on examples
45+
run: BUILD_SPIN_EXAMPLES=0 make lint-rust-examples-and-testcases
46+
4447
- name: Cancel everything if linting fails
4548
if: failure()
4649
uses: andymckay/[email protected]

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ install:
5353
test: lint test-unit test-integration
5454

5555
.PHONY: lint
56-
lint: lint-rust-examples-and-testcases
56+
lint:
5757
cargo clippy --all --all-targets --features all-tests -- -D warnings
5858
cargo fmt --all -- --check
5959

@@ -67,6 +67,9 @@ lint-rust-examples-and-testcases:
6767
|| exit 1 ; \
6868
done
6969

70+
.PHONY: lint-all
71+
lint-all: lint lint-rust-examples-and-testcases
72+
7073
## Bring all of the checked in `Cargo.lock` files up-to-date
7174
.PHONY: update-cargo-locks
7275
update-cargo-locks:

0 commit comments

Comments
 (0)