mirror of
https://github.com/LemmyNet/lemmy
synced 2024-10-30 15:21:20 +00:00
a09027c4c0
* Silence warnings from ts-rs https://github.com/Aleph-Alpha/ts-rs/issues/108 * fmt
18 lines
374 B
Bash
Executable File
18 lines
374 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
CWD="$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
|
|
|
|
cd $CWD/../
|
|
|
|
# Format rust files
|
|
cargo +nightly fmt
|
|
|
|
# Format toml files
|
|
taplo format
|
|
|
|
# Format sql files
|
|
find migrations -type f -name '*.sql' -exec pg_format -i {} +
|
|
|
|
cargo clippy --workspace --fix --allow-staged --allow-dirty --tests --all-targets --all-features -- -D warnings
|