jojo/services/repository/files
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
..
cherry_pick.go chore(cleanup): replaces unnecessary calls to formatting functions by non-formatting equivalents (#7994) 2025-05-29 17:34:29 +02:00
commit.go feat: improved performances when checking for conflicts on pull requests (#7727) 2025-05-16 12:40:38 +00:00
content.go git/commit: re-implement submodules file reader (#8438) 2025-07-15 00:20:00 +02:00
content_test.go chore: move all test blank imports in a single package (#10662) 2026-01-02 05:32:32 +01:00
diff.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
diff_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
file.go chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
file_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
patch.go feat: bump the minimum required Git version from 2.0.0 to 2.34.1 (#8328) 2025-06-29 00:44:18 +02:00
pathutils.go feat: Drag and drop nested directories (#6687) 2025-10-03 00:16:40 +02:00
temp_repo.go chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
temp_repo_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
tree.go chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
tree_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
update.go chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
upload.go feat: Drag and drop nested directories (#6687) 2025-10-03 00:16:40 +02:00