- rustup component add rustfmt --toolchain nightly-2023-07-10
- cargo +nightly-2023-07-10 fmt -- --check
+ sql_fmt:
+ image: alpine:3
+ commands:
+ - apk add bash wget perl make git
+ - wget https://github.com/darold/pgFormatter/archive/refs/tags/v5.5.tar.gz
+ - tar xzf v5.5.tar.gz
+ - cd pgFormatter-5.5
+ - perl Makefile.PL
+ - make && make install
+ - cd ..
+ - ./scripts/./sql_format_check.sh
+
# make sure api builds with default features (used by other crates relying on lemmy api)
check_api_common_default_features:
image: *muslrust_image
environment:
CARGO_HOME: .cargo
commands:
- # when adding new clippy lints, make sure to also add them in scripts/fix-clippy.sh
+ # when adding new clippy lints, make sure to also add them in scripts/lint.sh
- rustup component add clippy
- cargo clippy --workspace --tests --all-targets --features console --
-D warnings -D deprecated -D clippy::perf -D clippy::complexity