2022-12-28 20:06:28 +01: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
|
2024-04-06 19:56:10 +00:00
|
|
|
rev: v4.6.0
|
2022-12-28 20:06:28 +01: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:56:01 +00:00
|
|
|
rev: v1.0.6
|
2022-12-28 20:06:28 +01:00
|
|
|
hooks:
|
|
|
|
|
- id: gitlab-ci-linter
|
2023-05-04 08:34:40 +02:00
|
|
|
args:
|
|
|
|
|
- --project
|
|
|
|
|
- unboundsoftware/shiny/authz_client
|
2022-12-28 20:06:28 +01:00
|
|
|
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
|
2024-04-23 16:55:40 +00:00
|
|
|
rev: v9.16.0
|
2022-12-28 20:06:28 +01:00
|
|
|
hooks:
|
|
|
|
|
- id: commitlint
|
|
|
|
|
stages: [ commit-msg ]
|
|
|
|
|
additional_dependencies: [ '@commitlint/config-conventional' ]
|
2023-01-13 09:47:39 +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/shiny/authz_client
|
2022-12-28 20:06:28 +01:00
|
|
|
- repo: https://github.com/lietu/go-pre-commit
|
2024-02-26 09:56:32 +00:00
|
|
|
rev: v0.1.0
|
2022-12-28 20:06:28 +01:00
|
|
|
hooks:
|
|
|
|
|
- id: go-test
|
|
|
|
|
- id: gofumpt
|
2023-05-19 10:48:32 +02:00
|
|
|
- repo: https://github.com/golangci/golangci-lint
|
2024-08-22 23:00:54 +00:00
|
|
|
rev: v1.60.3
|
2023-05-19 10:48:32 +02:00
|
|
|
hooks:
|
2024-08-19 21:32:22 +02:00
|
|
|
- id: golangci-lint-full
|
2024-03-21 15:15:15 +01:00
|
|
|
- repo: https://github.com/gitleaks/gitleaks
|
2024-06-14 16:57:15 +00:00
|
|
|
rev: v8.18.4
|
2024-03-21 15:15:15 +01:00
|
|
|
hooks:
|
|
|
|
|
- id: gitleaks
|