mirror of
https://github.com/Xevion/Pac-Man.git
synced 2026-01-31 06:25:09 -06:00
fix(lint): resolve clippy warnings and add cross-platform lint recipe
- Add `just lint` recipe for desktop + wasm clippy checks - Fix clippy warnings: redundant field names, formatting, dead code - Gate Emscripten-specific audio methods behind target_os cfg
This commit is contained in:
@@ -40,6 +40,14 @@ web *args:
|
||||
bun run --cwd web build
|
||||
caddy file-server --root web/dist/client --listen :8547
|
||||
|
||||
# Run strict multi-platform lints (desktop + wasm)
|
||||
lint:
|
||||
@echo "Running clippy for desktop target..."
|
||||
@cargo clippy --all-targets --all-features --quiet -- -D warnings
|
||||
@echo "Running clippy for wasm target..."
|
||||
@cargo clippy -p pacman --target wasm32-unknown-emscripten --all-features --quiet -- -D warnings
|
||||
@echo "All lints passed!"
|
||||
|
||||
# Fix linting errors & formatting
|
||||
fix:
|
||||
cargo fix --workspace --lib --allow-dirty
|
||||
|
||||
Reference in New Issue
Block a user