nh/fix.sh
NotAShelf f8c9708b86
meta: set up editorconfig
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a696485822c5372023ea93008dd3bef1a50c0
2025-08-06 20:19:28 +03:00

16 lines
359 B
Bash
Executable file

#! /usr/bin/env bash
set -eux
echo "Running 'cargo fix' on the codebase"
cargo fix --allow-dirty
echo "Running clippy linter and applying available fixes"
cargo clippy --fix --allow-dirty -- -W clippy::pedantic \
-W clippy::correctness \
-W clippy::suspicious \
-W clippy::cargo
echo "Running Rust formatter"
cargo fmt
echo "Running TOML formatter"