Matej Focko
0341881984
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>
27 lines
514 B
YAML
27 lines
514 B
YAML
# C++
|
||
- id: clang-format
|
||
name: clang-format
|
||
description: Format C/C++ sources with ‹clang-format›.
|
||
entry: clang-format -i
|
||
language: system
|
||
types_or:
|
||
- c
|
||
- c++
|
||
args:
|
||
- "-style=file"
|
||
|
||
# Rust
|
||
- id: rust-fmt
|
||
name: rustfmt
|
||
description: Format Rust sources with ‹rustfmt›.
|
||
entry: rustfmt
|
||
language: system
|
||
types:
|
||
- rust
|
||
- id: rust-clippy
|
||
name: clippy
|
||
description: Lint Rust sources with ‹clippy›.
|
||
entry: rust/clippy-driver.sh
|
||
language: system
|
||
types:
|
||
- rust
|