diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 2f99cc0..e07cf4e 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -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 diff --git a/rust/clippy-driver.sh b/rust/clippy-driver.sh new file mode 100755 index 0000000..3045132 --- /dev/null +++ b/rust/clippy-driver.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +for src_file in "$@"; do + clippy-driver $src_file +done