jojo/routers/web/user
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
..
setting feat(ui): create repo-specific access tokens (#11696) 2026-03-23 15:29:08 +01:00
avatar.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
code.go chore: minor code cleanup in search (#10549) 2025-12-23 00:38:51 +01:00
home.go chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
home_test.go fix: Allow SHA-256 in PR commit URLs (#10309) 2025-12-16 00:45:00 +01:00
main_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
notification.go chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
package.go chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
profile.go refactor: replace Value() from Option[T] with Get() & ValueOrZeroValue() (#11218) 2026-02-10 16:41:21 +01:00
search.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
stop_watch.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
task.go feat(build): improve lint-locale-usage further (#8736) 2025-08-27 23:47:34 +02:00