forgejo/modules/validation
Gusted 607d031069 [v15.0/forgejo]: chore: add modernizer linter (#11949)
**Backport: !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/11949
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 16:54:46 +02:00
..
binding.go [v15.0/forgejo]: chore: add modernizer linter (#11949) 2026-04-02 16:54:46 +02:00
binding_test.go Validate OAuth Redirect URIs (#32643) 2024-12-03 10:19:22 +01:00
email.go chore: add email blocklist unit test 2025-08-30 09:45:19 +02:00
email_test.go chore: add email blocklist unit test 2025-08-30 09:45:19 +02:00
glob_pattern_test.go [CHORE] Use forked binding library 2024-11-05 22:47:34 +01:00
helpers.go [v15.0/forgejo]: chore: add modernizer linter (#11949) 2026-04-02 16:54:46 +02:00
helpers_test.go feat(activitypub): use structure @PreferredUsername@host.tld:port for actors (#9254) 2026-01-30 23:45:11 +01:00
refname_test.go [CHORE] Use forked binding library 2024-11-05 22:47:34 +01:00
regex_pattern_test.go [CHORE] Use forked binding library 2024-11-05 22:47:34 +01:00
validatable.go [v15.0/forgejo]: chore: add modernizer linter (#11949) 2026-04-02 16:54:46 +02:00
validatable_test.go enhance validateable interface (#7714) 2025-05-30 13:07:35 +02:00
validurl_test.go [CHORE] Use forked binding library 2024-11-05 22:47:34 +01:00
validurllist_test.go Validate OAuth Redirect URIs (#32643) 2024-12-03 10:19:22 +01:00