forked from doublify/pre-commit-rust
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhooks.yaml
42 lines (42 loc) · 1.04 KB
/
hooks.yaml
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
- id: fmt
name: fmt
description: Format files with cargo fmt.
entry: cargo fmt --
language: system
files: \.rs$
args: []
- id: cargo-check
name: cargo check
description: Check the package for errors.
entry: cargo check
language: system
files: \.rs$
pass_filenames: false
- id: cargo-clippy
name: cargo clippy
description: Run the Clippy linter on the package.
entry: cargo clippy -- -D warnings
language: system
files: \.rs$
pass_filenames: false
- id: cargo-machete
name: cargo machete
description: Check the package for errors.
entry: cargo machete
language: system
files: \.rs$
pass_filenames: false
- id: cargo-llvm-cov
name: cargo llvm-cov
description: Run tests with code coverage.
entry: cargo llvm-cov
language: system
files: \.rs$
pass_filenames: false
- id: cargo-sort
name: cargo sort
description: Sort entries in cargo toml.
entry: cargo sort
language: system
files: \.rs$
pass_filenames: false