File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 2222- Imports: std first, then external crates, then local modules
2323- Naming: snake_case functions/variables, PascalCase types, SCREAMING_SNAKE_CASE constants
2424- Error handling: Result/Option types preferred over panics
25- - Run `./check.sh` after changes to ensure no warnings/errors
25+ - Run `./fix.sh and ./ check.sh` after changes to ensure no warnings/errors
2626- Use eprintln for adding debug prints to code and tests when debuggin
2727
2828
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2- # This scripts runs various CI-like checks in a convenient way.
2+ # This script automatically fixes issues found by check.sh
33set -eu
44
5+ # Format all code
56cargo fmt --all -q
6- cargo fix --lib -p simu --allow-dirty
7+
8+ # Fix all auto-fixable issues (works even with staged/dirty files)
9+ cargo fix --quiet --workspace --all-targets --allow-dirty --allow-staged
10+
11+ # Fix clippy warnings (works even with staged/dirty files)
12+ cargo clippy --quiet --workspace --all-targets --all-features --fix --allow-dirty --allow-staged -- -D warnings -W clippy::all
You can’t perform that action at this time.
0 commit comments