We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70767d7 commit 1d3aaf3Copy full SHA for 1d3aaf3
scripts/fix-code.sh
@@ -0,0 +1,15 @@
1
+#!/bin/bash
2
+set -euo pipefail
3
+
4
+# This script formats the code using cargo fmt, runs cargo clippy with auto-fix,
5
+# and if any files were modified, stages and commits them.
6
7
+echo "Running cargo fmt to format code..."
8
+cargo fmt --all
9
10
+echo "Running cargo clippy with auto-fix (requires nightly)..."
11
+cargo clippy --all-features --workspace --fix --allow-dirty
12
13
+echo "Running tests..."
14
+cargo test --all
15
0 commit comments