feat: add clang-format hook
Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
parent
ee5c737b7f
commit
129c6c2bad
1 changed files with 14 additions and 1 deletions
|
@ -1,6 +1,19 @@
|
|||
# C++
|
||||
- id: clang-format
|
||||
name: clang-format
|
||||
description: Format C/C++ sources with ‹clang-format›.
|
||||
entry: clang-format -i
|
||||
language: system
|
||||
types:
|
||||
- c
|
||||
- c++
|
||||
args:
|
||||
- "-style=file"
|
||||
|
||||
# Rust
|
||||
- id: rust-fmt
|
||||
name: rustfmt
|
||||
description: Format Rust sources with the ‹rustfmt›.
|
||||
description: Format Rust sources with ‹rustfmt›.
|
||||
entry: rustfmt
|
||||
language: system
|
||||
types:
|
||||
|
|
Loading…
Reference in a new issue