lemmy/scripts/lint.sh
Nutomic 16ac893e15
Some changes to help debug auth problems on lemmy.ml (#4220)
* Some changes to help debug auth problems on lemmy.ml

* fix

* clippy
2023-12-01 09:18:29 -05:00

17 lines
359 B
Bash
Executable file

#!/usr/bin/env bash
set -e
CWD="$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
cd $CWD/../
cargo clippy --workspace --fix --allow-staged --allow-dirty --tests --all-targets -- -D warnings
# Format rust files
cargo +nightly fmt
# Format toml files
taplo format
# Format sql files
find migrations -type f -name '*.sql' -exec pg_format -i {} +