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://gitlab.com/devopshq/gitlab-ci-linter
|
2024-02-26 06:52:16 +00:00
|
|
|
rev: v1.0.6
|
2022-10-09 15:23:52 +02:00
|
|
|
hooks:
|
|
|
|
|
- id: gitlab-ci-linter
|
2023-04-27 07:17:37 +02:00
|
|
|
args:
|
|
|
|
|
- --project
|
|
|
|
|
- unboundsoftware/schemas
|
2022-10-09 15:23:52 +02:00
|
|
|
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
|
2025-03-11 14:53:36 +00:00
|
|
|
rev: v9.22.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
|
|
|
|
|
- gitlab.com/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
|
2025-09-21 19:57:48 +00:00
|
|
|
rev: v2.5.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-07-20 16:56:45 +00:00
|
|
|
rev: v8.28.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/.*$$'
|