2022-10-09 15:23:52 +02:00
|
|
|
# See https://pre-commit.com for more information
|
|
|
|
|
# See https://pre-commit.com/hooks.html for more hooks
|
|
|
|
|
repos:
|
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2025-08-09 19:58:04 +00:00
|
|
|
rev: v6.0.0
|
2022-10-09 15:23:52 +02:00
|
|
|
hooks:
|
|
|
|
|
- id: trailing-whitespace
|
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
|
- id: check-yaml
|
|
|
|
|
args:
|
|
|
|
|
- --allow-multiple-documents
|
|
|
|
|
- id: check-added-large-files
|
|
|
|
|
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
|
2026-01-13 23:56:25 +00:00
|
|
|
rev: v9.24.0
|
2022-10-09 15:23:52 +02:00
|
|
|
hooks:
|
|
|
|
|
- id: commitlint
|
|
|
|
|
stages: [ commit-msg ]
|
|
|
|
|
additional_dependencies: [ '@commitlint/config-conventional' ]
|
2023-01-13 13:44:33 +01:00
|
|
|
- repo: https://github.com/dnephin/pre-commit-golang
|
|
|
|
|
rev: v0.5.1
|
|
|
|
|
hooks:
|
|
|
|
|
- id: go-mod-tidy
|
|
|
|
|
- id: go-imports
|
|
|
|
|
args:
|
|
|
|
|
- -local
|
2026-01-17 22:53:46 +01:00
|
|
|
- git.unbound.se/unboundsoftware/schemas
|
2022-10-09 15:23:52 +02:00
|
|
|
- repo: https://github.com/lietu/go-pre-commit
|
2025-09-13 09:12:24 +00:00
|
|
|
rev: v1.0.0
|
2022-10-09 15:23:52 +02:00
|
|
|
hooks:
|
|
|
|
|
- id: go-test
|
|
|
|
|
- id: gofumpt
|
2023-05-19 11:22:51 +02:00
|
|
|
- repo: https://github.com/golangci/golangci-lint
|
2026-01-07 21:59:31 +00:00
|
|
|
rev: v2.8.0
|
2023-05-19 11:22:51 +02:00
|
|
|
hooks:
|
2024-08-19 21:35:36 +02:00
|
|
|
- id: golangci-lint-full
|
2024-03-22 23:29:08 +01:00
|
|
|
- repo: https://github.com/gitleaks/gitleaks
|
2025-11-26 18:59:33 +00:00
|
|
|
rev: v8.30.0
|
2024-03-22 23:29:08 +01:00
|
|
|
hooks:
|
|
|
|
|
- id: gitleaks
|
2023-10-06 06:24:54 +00:00
|
|
|
exclude: '^ctl/generated.go|graph/generated/.*$|^graph/model/models_gen.go|^tools/.*$$'
|