-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (28 loc) · 984 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
install-lint-tools:
cargo install --locked cargo-spellcheck
cargo install --locked taplo-cli
cargo install --locked cargo-deny
install-lint-tools-ci:
wget https://github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-x86_64-unknown-linux-musl.tgz
tar xzf cargo-binstall-x86_64-unknown-linux-musl.tgz
cp cargo-binstall ~/.cargo/bin/cargo-binstall
cargo binstall --no-confirm cargo-spellcheck taplo-cli cargo-deny
lint-all: deny spellcheck fmt-lints cargo-clippy
fmt:
cargo fmt --all
taplo fmt
corepack enable && yarn && yarn md-fmt
fmt-lints: cargo-fmt taplo md-lint
md-lint:
corepack enable && yarn && yarn md-check
cargo-fmt:
cargo fmt --all --check
cargo-clippy:
cargo clippy --workspace --all-features --all-targets --quiet --no-deps -- --deny warnings
taplo:
taplo fmt --check
taplo lint
deny:
cargo deny check || (echo "See deny.toml"; false)
spellcheck:
cargo spellcheck --code 1 || (echo "See .config/spellcheck.toml"; false)