Skip to content

Commit 0c016ce

Browse files
committed
Enabling possibility to add custom arguments to clippy too.
1 parent 14b3e11 commit 0c016ce

File tree

1 file changed

+22
-21
lines changed

1 file changed

+22
-21
lines changed

.pre-commit-hooks.yaml

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
1-
- id: fmt
2-
name: fmt
3-
description: Format files with cargo fmt.
4-
entry: cargo fmt
5-
language: system
6-
types: [rust]
7-
args: ['--']
8-
- id: cargo-check
9-
name: cargo check
10-
description: Check the package for errors.
11-
entry: cargo check
12-
language: system
13-
types: [rust]
14-
pass_filenames: false
15-
- id: clippy
16-
name: clippy
17-
description: Lint rust sources
18-
entry: cargo clippy -- -D warnings
19-
language: system
20-
types: [rust]
21-
pass_filenames: false
1+
- id: fmt
2+
name: fmt
3+
description: Format files with cargo fmt.
4+
entry: cargo fmt
5+
language: system
6+
types: [rust]
7+
args: ["--"]
8+
- id: cargo-check
9+
name: cargo check
10+
description: Check the package for errors.
11+
entry: cargo check
12+
language: system
13+
types: [rust]
14+
pass_filenames: false
15+
- id: clippy
16+
name: clippy
17+
description: Lint rust sources
18+
entry: cargo clippy
19+
language: system
20+
args: ["--", "-D", "warnings"]
21+
types: [rust]
22+
pass_filenames: false

0 commit comments

Comments
 (0)