2024-09-10 22:58:05 +00:00
|
|
|
exclude: 'third_party/.*|laf/.*'
|
|
|
|
|
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2024-12-10 17:00:38 +00:00
|
|
|
rev: v5.0.0
|
2024-09-10 22:58:05 +00:00
|
|
|
hooks:
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: trailing-whitespace
|
2024-12-11 01:38:57 +00:00
|
|
|
- id: mixed-line-ending
|
|
|
|
args: [ --fix=lf ]
|
|
|
|
exclude: '.*\.cmd$|.*\.ps1$'
|
|
|
|
- id: mixed-line-ending
|
|
|
|
args: [ --fix=crlf ]
|
|
|
|
files: '.*\.cmd$|.*\.ps1$'
|
2024-09-10 22:58:05 +00:00
|
|
|
|
|
|
|
- repo: https://github.com/Lucas-C/pre-commit-hooks
|
|
|
|
rev: v1.5.5
|
|
|
|
hooks:
|
|
|
|
- id: remove-tabs
|
|
|
|
args: [--whitespaces-count, '8']
|
2024-12-11 01:04:01 +00:00
|
|
|
exclude: '.*\.gpl$|\.gitmodules'
|
2024-09-10 22:58:05 +00:00
|
|
|
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-clang-format
|
2024-12-10 17:00:38 +00:00
|
|
|
rev: v19.1.5
|
2024-09-10 22:58:05 +00:00
|
|
|
hooks:
|
|
|
|
- id: clang-format
|
2024-12-14 03:07:23 +00:00
|
|
|
files: \.(c|h|cpp|hpp|cc|hh|cxx|hxx|m|mm)$
|
2024-09-10 22:58:05 +00:00
|
|
|
types_or: [text]
|
|
|
|
|
|
|
|
- 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)$
|
|
|
|
args: [--fix, --quiet, --use-color]
|
|
|
|
types_or: [text]
|
2024-12-10 17:00:38 +00:00
|
|
|
additional_dependencies: [clang-tidy==19.1.0]
|
2024-09-10 22:58:05 +00:00
|
|
|
require_serial: true
|
|
|
|
stages: [manual]
|