forgejo/services/issue
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
..
assignee.go feat: implement fine-grained access tokens in /repos/{owner}/{repo}/pulls/{index}/requested_reviewers 2026-03-01 17:05:53 +01:00
assignee_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
comments.go chore(cleanup): replaces unnecessary calls to formatting functions by non-formatting equivalents (#7994) 2025-05-29 17:34:29 +02:00
comments_test.go chore: move all test blank imports in a single package (#10662) 2026-01-02 05:32:32 +01:00
commit.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
commit_test.go refactor: migrate from lib/pq to jackc/pgx (#10219) 2025-11-30 17:47:45 +01:00
content.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
issue.go chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
issue_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
label.go fix: remove redundant permission check in RemoveLabel (#7835) 2025-05-14 16:20:43 +00:00
label_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
main_test.go chore: move all test blank imports in a single package (#10662) 2026-01-02 05:32:32 +01:00
milestone.go chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
milestone_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
pull.go feat: avoid remote for codeowner's merge base (#9610) 2025-10-10 15:50:38 +02:00
reaction.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
status.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
template.go feat: search in the docs directory for issue and pull request templates (#8863) 2025-08-26 22:08:10 +02:00