pre-commit-hooks/.pre-commit-hooks.yaml
Matej Focko 129c6c2bad
feat: add clang-format hook
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-02-21 23:33:42 +01:00

27 lines
503 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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 rustfmt.
entry: rustfmt
language: system
types:
- rust
- id: rust-clippy
name: clippy
description: Lint Rust sources with clippy.
entry: clippy-driver
language: system
types:
- rust