gitforge/modules/log
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
..
color.go
color_console.go
color_console_other.go chore: handle error types consistently (#9873) 2026-03-06 00:48:06 +01:00
color_router.go
event_format.go [v15.0/forgejo]: chore: add modernizer linter (#11949) 2026-04-02 16:54:46 +02:00
event_format_test.go
event_writer.go
event_writer_base.go ci: detect and prevent empty case statements in Go code (#11593) 2026-03-10 02:50:28 +01:00
event_writer_buffer.go
event_writer_buffer_test.go
event_writer_conn.go
event_writer_conn_test.go [v15.0/forgejo]: chore: add modernizer linter (#11949) 2026-04-02 16:54:46 +02:00
event_writer_console.go
event_writer_file.go
flags.go [v15.0/forgejo]: chore: add modernizer linter (#11949) 2026-04-02 16:54:46 +02:00
flags_test.go
init.go
level.go
level_test.go [v15.0/forgejo]: chore: add modernizer linter (#11949) 2026-04-02 16:54:46 +02:00
logger.go
logger_global.go
logger_impl.go ci: detect and prevent empty case statements in Go code (#11593) 2026-03-10 02:50:28 +01:00
logger_impl_test.go
logger_test.go
manager.go
manager_test.go
misc.go
stack.go feat(log): better parseable and configurable ssh-logs (#9056) 2025-09-11 18:59:24 +02:00