-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (32 loc) · 1.11 KB
/
Makefile
File metadata and controls
43 lines (32 loc) · 1.11 KB
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
39
40
41
42
43
install-lint-tools:
cargo +stable install --locked cargo-spellcheck
cargo +stable install --locked taplo-cli
cargo +stable install --locked leptosfmt
cargo +stable 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 +stable binstall --no-confirm cargo-spellcheck taplo-cli cargo-deny leptosfmt
lint-all: deny spellcheck fmt-lints cargo-clippy
fmt:
cargo fmt --all
taplo fmt
leptosfmt .
corepack enable pnpm && pnpm i && pnpm md-fmt
fmt-lints: cargo-fmt taplo md-lint leptos-fmt
md-lint:
corepack enable pnpm && pnpm i && pnpm md-check
cargo-fmt:
cargo fmt --all --check
leptos-fmt:
leptosfmt --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)