gitforge/services/webhook
Gusted 77dbc35138 chore: add modernizer linter (#11936)
- Go has a suite of small linters that helps with modernizing Go code by using newer functions and catching small mistakes, https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/modernize.
- Enable this linter in golangci-lint.
- There's also [`go fix`](https://go.dev/blog/gofix), which is not yet released as a linter in golangci-lint: https://github.com/golangci/golangci-lint/pull/6385

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/11936
Reviewed-by: Mathieu Fenniak <mfenniak@noreply.codeberg.org>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2026-04-02 03:29:37 +02:00
..
shared
sourcehut
TestPushCommits
default.go
default_test.go
deliver.go
deliver_test.go chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
dingtalk.go chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
dingtalk_test.go
discord.go chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
discord_test.go
feishu.go chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
feishu_test.go
general.go
general_test.go
gogs.go
main_test.go
matrix.go chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
matrix_test.go
msteams.go chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
msteams_test.go
notifier.go
notifier_test.go
packagist.go
packagist_test.go
slack.go chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
slack_test.go
telegram.go chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
telegram_test.go
webhook.go
webhook_test.go
wechatwork.go chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00