2025-06-27 20:03:37 -07:00
|
|
|
exclude: pkg/gotd/_fuzz/.*|pkg/gotd/_schema/.*|pkg/gotd/.*\.tmpl
|
2022-01-21 00:02:42 -07:00
|
|
|
repos:
|
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2025-08-26 18:05:20 +03:00
|
|
|
rev: v6.0.0
|
2022-01-21 00:02:42 -07:00
|
|
|
hooks:
|
|
|
|
|
- id: trailing-whitespace
|
|
|
|
|
exclude_types: [markdown]
|
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
|
- id: check-yaml
|
|
|
|
|
- id: check-added-large-files
|
2024-03-24 00:29:54 +02:00
|
|
|
|
|
|
|
|
- repo: https://github.com/tekwizely/pre-commit-golang
|
2025-08-26 18:05:20 +03:00
|
|
|
rev: v1.0.0-rc.2
|
2022-01-21 00:02:42 -07:00
|
|
|
hooks:
|
2024-03-24 00:29:54 +02:00
|
|
|
- id: go-imports
|
2024-05-14 10:03:15 -06:00
|
|
|
args:
|
|
|
|
|
- "-local"
|
|
|
|
|
- "go.mau.fi/mautrix-telegram"
|
|
|
|
|
- "-w"
|
2024-03-24 00:29:54 +02:00
|
|
|
- id: go-vet-mod
|
2025-06-27 20:20:53 -07:00
|
|
|
# Disabled for now until we can find a way to filter out the gotd package
|
|
|
|
|
# - id: go-staticcheck-repo-mod
|
2024-07-10 12:00:29 -06:00
|
|
|
- id: go-mod-tidy
|
2024-03-24 00:29:54 +02:00
|
|
|
|
|
|
|
|
- repo: https://github.com/beeper/pre-commit-go
|
2025-02-17 14:14:08 -07:00
|
|
|
rev: v0.4.2
|
2022-01-21 00:02:42 -07:00
|
|
|
hooks:
|
2024-10-30 09:27:58 -06:00
|
|
|
- id: prevent-literal-http-methods
|
|
|
|
|
- id: zerolog-ban-global-log
|
2024-03-24 00:29:54 +02:00
|
|
|
- id: zerolog-ban-msgf
|
|
|
|
|
- id: zerolog-use-stringer
|