Separate OSDK lint from kernel lint

This commit is contained in:
Zhang Junyang 2024-05-03 21:52:11 +08:00 committed by Tate, Hongliang Tian
parent cd3faa8123
commit b4a357a971
2 changed files with 5 additions and 2 deletions

View File

@ -23,7 +23,7 @@ jobs:
- name: Lint
id: lint
run: cd osdk && cargo clippy -- -D warnings
run: make check_osdk
# The OSDK unit test features a recursive call of Cargo,
# which will break when RUSTUP_HOME is altered in the case

View File

@ -178,7 +178,6 @@ format:
.PHONY: check
check: $(CARGO_OSDK)
@cd osdk && cargo clippy -- -D warnings
@./tools/format_all.sh --check # Check Rust format issues
@# Check if STD_CRATES and NOSTD_CRATES combined is the same as all workspace members
@sed -n '/^\[workspace\]/,/^\[.*\]/{/members = \[/,/\]/p}' Cargo.toml | \
@ -198,6 +197,10 @@ check: $(CARGO_OSDK)
done
@make --no-print-directory -C regression check
.PHONY: check_osdk
check_osdk:
@cd osdk && cargo clippy -- -D warnings
.PHONY: clean
clean:
@cargo clean