1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

CI: Add pre-commit hook for clang-tidy

• Set to "manual" so it isn't invoked in normal workflow
• Modernize `.clang-tidy` file
This commit is contained in:
Thaddeus Crews
2024-06-17 10:39:02 -05:00
parent 71699e08c9
commit 576c9e4fe8
3 changed files with 34 additions and 74 deletions

View File

@@ -20,6 +20,22 @@ repos:
platform/android/java/lib/src/com/.*
)
- repo: https://github.com/pocc/pre-commit-hooks
rev: v1.3.5
hooks:
- id: clang-tidy
files: \.(c|h|cpp|hpp|cc|hh|cxx|hxx|m|mm|inc|java|glsl)$
args: [--fix, --quiet, --use-color]
types_or: [text]
exclude: |
(?x)^(
tests/python_build/.*|
platform/android/java/lib/src/com/.*
)
additional_dependencies: [clang-tidy==18.1.1]
require_serial: true
stages: [manual] # Not automatically triggered, invoked via `pre-commit run --hook-stage manual clang-tidy`
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.4
hooks: