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:
Matej Focko 2024-02-24 15:21:01 +01:00
parent 9b87387629
commit 0341881984
Signed by: mfocko
GPG key ID: 7C47D46246790496
2 changed files with 6 additions and 1 deletions

View file

@ -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
View file

@ -0,0 +1,5 @@
#!/bin/bash
for src_file in "$@"; do
clippy-driver $src_file
done