mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-23 04:41:19 +00:00
30f7135f32
* ci rust 1.74.0 * do it * Update .woodpecker.yml * Update Cargo.toml * Update lint.sh * Update lib.rs --------- Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
17 lines
374 B
Bash
Executable file
17 lines
374 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 --all-features -- -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 {} +
|