-
-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
29 lines (27 loc) · 883 Bytes
/
.pre-commit-config.yaml
File metadata and controls
29 lines (27 loc) · 883 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-json
- id: check-toml
- id: check-merge-conflict
- id: mixed-line-ending
args: ['--fix=lf']
description: "Forces line endings to LF."
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v22.1.1
hooks:
- id: clang-format
types_or: [c, c++]
- repo: https://github.com/pocc/pre-commit-hooks
rev: v1.3.5
hooks:
- id: clang-tidy
args:
- --quiet
- -p=build # Assumes compile_commands.json is in a 'build' directory
# You may need to adjust the path '-p=<path_to_build_dir>'
# Generate compile_commands.json with: cmake -S . -B build -DCMAKE_EXPORT_COMPILE_COMMANDS=1