fix(rust): add wrapper for running clippy
Add wrapper for running clippy on each file separately, since ‹clippy-driver› accepts only one file at a time. Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
parent
9b87387629
commit
0341881984
2 changed files with 6 additions and 1 deletions
|
@ -21,7 +21,7 @@
|
|||
- id: rust-clippy
|
||||
name: clippy
|
||||
description: Lint Rust sources with ‹clippy›.
|
||||
entry: clippy-driver
|
||||
entry: rust/clippy-driver.sh
|
||||
language: system
|
||||
types:
|
||||
- rust
|
||||
|
|
5
rust/clippy-driver.sh
Executable file
5
rust/clippy-driver.sh
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
for src_file in "$@"; do
|
||||
clippy-driver $src_file
|
||||
done
|
Loading…
Reference in a new issue