Skip to content

Commit 3facf2c

Browse files
committed
improve linting and formatting Makefile rules
1 parent 7c9c27f commit 3facf2c

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Makefile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,23 @@ clean:
1111
@cargo clean
1212
.PHONY: clean
1313

14+
format:
15+
@cargo fmt --all --
16+
.PHONY: format
17+
18+
format_check:
19+
@cargo fmt --all -- --check
20+
.PHONY: format
21+
1422
install:
1523
@cargo install --force --locked --path .
1624
.PHONY: install
1725

1826
lint:
19-
@cargo fmt --all --
27+
@cargo clippy --fix --allow-dirty
2028
.PHONY: lint
2129

2230
lint_check:
23-
@cargo fmt --all -- --check
2431
@cargo clippy --
2532
.PHONY: lint_check
2633

0 commit comments

Comments
 (0)