mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-04 11:55:51 +00:00
style: Add C++ pre-commit hooks (#2039)
This commit is contained in:
@@ -50,3 +50,24 @@ repos:
|
||||
rev: v1.31.2
|
||||
hooks:
|
||||
- id: typos
|
||||
|
||||
- repo: https://github.com/pre-commit/mirrors-clang-format
|
||||
rev: v19.1.7
|
||||
hooks:
|
||||
- id: clang-format
|
||||
args: [--style=file]
|
||||
types: [c++]
|
||||
|
||||
- repo: https://github.com/cheshirekow/cmake-format-precommit
|
||||
rev: v0.6.13
|
||||
hooks:
|
||||
- id: cmake-format
|
||||
additional_dependencies: [PyYAML]
|
||||
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: check-no-h-files
|
||||
name: No .h files
|
||||
entry: There should be no .h files in this repository
|
||||
language: fail
|
||||
files: \.h$
|
||||
|
||||
Reference in New Issue
Block a user