feat(rust): add cargo hooks
Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
parent
857e178381
commit
0395df5967
1 changed files with 29 additions and 0 deletions
|
@ -25,3 +25,32 @@
|
||||||
language: system
|
language: system
|
||||||
types:
|
types:
|
||||||
- rust
|
- rust
|
||||||
|
|
||||||
|
# Cargo
|
||||||
|
- id: cargo-fmt
|
||||||
|
name: cargo fmt
|
||||||
|
description: Format sources with ‹cargo fmt›.
|
||||||
|
entry: cargo fmt
|
||||||
|
args:
|
||||||
|
- "--"
|
||||||
|
language: system
|
||||||
|
types:
|
||||||
|
- rust
|
||||||
|
- id: cargo-check
|
||||||
|
name: cargo check
|
||||||
|
description: Check the crate for errors.
|
||||||
|
entry: cargo check
|
||||||
|
language: system
|
||||||
|
types:
|
||||||
|
- rust
|
||||||
|
pass_filenames: false
|
||||||
|
- id: cargo-clippy
|
||||||
|
name: cargo clippy
|
||||||
|
description: Lint the crate with ‹cargo clippy›.
|
||||||
|
entry: cargo clippy
|
||||||
|
args:
|
||||||
|
- "--"
|
||||||
|
language: system
|
||||||
|
types:
|
||||||
|
- rust
|
||||||
|
pass_filenames: false
|
||||||
|
|
Loading…
Reference in a new issue