alai/.pre-commit-config.yaml

29 lines
986 B
YAML
Raw Normal View History

2022-10-10 22:02:00 -03:00
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
2022-10-10 22:36:15 -03:00
- repo: https://github.com/pre-commit/pre-commit-hooks
2023-03-01 09:19:25 -03:00
rev: v4.4.0
2022-10-10 22:36:15 -03:00
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-case-conflict
- id: mixed-line-ending
- id: check-added-large-files
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: detect-private-key
- id: no-commit-to-branch
args: [--branch, master, --branch, develop]
- repo: https://github.com/pre-commit/mirrors-clang-format
2023-03-01 09:19:25 -03:00
rev: v15.0.7
2022-10-10 22:36:15 -03:00
hooks:
- id: clang-format
types_or: [c++, c]
args: ["-style=file"]
2022-10-10 22:02:00 -03:00
#- repo: https://github.com/pocc/pre-commit-hooks
# rev: v1.3.5
# hooks:
# - id: clang-tidy
# args: [-checks=clang-diagnostic-return-type]
# files: src/.*\.cpp