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:
2025-12-29 01:15:03 -06:00
parent 6db061cc41
commit 791a0e48e3
7 changed files with 46 additions and 15 deletions
+8
View File
@@ -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