mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2026-05-17 08:16:35 +00:00
- 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> |
||
|---|---|---|
| .. | ||
| main_test.go | ||
| v244.go | ||
| v245.go | ||
| v246.go | ||
| v247.go | ||
| v248.go | ||
| v249.go | ||
| v250.go | ||
| v251.go | ||
| v252.go | ||
| v253.go | ||
| v254.go | ||
| v255.go | ||
| v256.go | ||
| v257.go | ||
| v258.go | ||
| v259.go | ||
| v259_test.go | ||