mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2026-07-18 23:47:50 +00:00
**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> |
||
|---|---|---|
| .. | ||
| color.go | ||
| color_console.go | ||
| color_console_other.go | ||
| color_router.go | ||
| event_format.go | ||
| event_format_test.go | ||
| event_writer.go | ||
| event_writer_base.go | ||
| event_writer_buffer.go | ||
| event_writer_buffer_test.go | ||
| event_writer_conn.go | ||
| event_writer_conn_test.go | ||
| event_writer_console.go | ||
| event_writer_file.go | ||
| flags.go | ||
| flags_test.go | ||
| init.go | ||
| level.go | ||
| level_test.go | ||
| logger.go | ||
| logger_global.go | ||
| logger_impl.go | ||
| logger_impl_test.go | ||
| logger_test.go | ||
| manager.go | ||
| manager_test.go | ||
| misc.go | ||
| stack.go | ||