Enabling possibility to add custom arguments to clippy too.
This commit is contained in:
parent
14b3e118cf
commit
0c016cee78
|
@ -1,21 +1,22 @@
|
||||||
- id: fmt
|
- id: fmt
|
||||||
name: fmt
|
name: fmt
|
||||||
description: Format files with cargo fmt.
|
description: Format files with cargo fmt.
|
||||||
entry: cargo fmt
|
entry: cargo fmt
|
||||||
language: system
|
language: system
|
||||||
types: [rust]
|
types: [rust]
|
||||||
args: ['--']
|
args: ["--"]
|
||||||
- id: cargo-check
|
- id: cargo-check
|
||||||
name: cargo check
|
name: cargo check
|
||||||
description: Check the package for errors.
|
description: Check the package for errors.
|
||||||
entry: cargo check
|
entry: cargo check
|
||||||
language: system
|
language: system
|
||||||
types: [rust]
|
types: [rust]
|
||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
- id: clippy
|
- id: clippy
|
||||||
name: clippy
|
name: clippy
|
||||||
description: Lint rust sources
|
description: Lint rust sources
|
||||||
entry: cargo clippy -- -D warnings
|
entry: cargo clippy
|
||||||
language: system
|
language: system
|
||||||
types: [rust]
|
args: ["--", "-D", "warnings"]
|
||||||
pass_filenames: false
|
types: [rust]
|
||||||
|
pass_filenames: false
|
||||||
|
|
Loading…
Reference in a new issue