chore: lintnig

This commit is contained in:
zhom
2025-08-10 03:53:36 +04:00
parent 17483e50b3
commit 82a0b7fdf0
2 changed files with 10 additions and 3 deletions
+10 -2
View File
@@ -1,3 +1,11 @@
#!/bin/bash
#!/usr/bin/env bash
set -euo pipefail
cargo clippy --fix --allow-dirty --all-targets --all-features -- -D warnings -D clippy::all && cargo fmt --all
# Run rustfmt first for quick formatting
cargo fmt --all
# Run clippy across all targets and features; fail on any warning
cargo clippy --fix --allow-dirty --all-targets --all-features -- -D warnings -D clippy::all
# Additionally, run clippy for tests explicitly to catch test-only lints
cargo clippy --fix --allow-dirty --tests -- -D warnings -D clippy::all