mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-17 09:25:50 +00:00
a790a24c4d
* Revert "Some changes to help debug auth problems on lemmy.ml (#4220)"
This reverts commit 16ac893e15
.
* Rename auth cookie back to jwt
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/../
|
|
|
|
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 {} +
|