jojo/modules/forgefed
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
..
activity_follow.go refactor & enhance AP elements used (#7728) 2025-06-02 22:29:10 +02:00
activity_follow_test.go log instrumentation & test package (#10371) 2025-12-09 15:37:50 +01:00
activity_like.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
activity_like_test.go log instrumentation & test package (#10371) 2025-12-09 15:37:50 +01:00
activity_undo_like.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
activity_undo_like_test.go log instrumentation & test package (#10371) 2025-12-09 15:37:50 +01:00
activity_user_activity.go log instrumentation & test package (#10371) 2025-12-09 15:37:50 +01:00
activity_user_activity_test.go log instrumentation & test package (#10371) 2025-12-09 15:37:50 +01:00
activity_validateandcheckerror_test.go log instrumentation & test package (#10371) 2025-12-09 15:37:50 +01:00
actor.go [v15.0/forgejo]: chore: add modernizer linter (#11949) 2026-04-02 16:54:46 +02:00
actor_person.go feat(activitypub): use structure @PreferredUsername@host.tld:port for actors (#9254) 2026-01-30 23:45:11 +01:00
actor_person_test.go feat(activitypub): use structure @PreferredUsername@host.tld:port for actors (#9254) 2026-01-30 23:45:11 +01:00
actor_repository.go refactor & enhance AP elements used (#7728) 2025-06-02 22:29:10 +02:00
actor_repository_test.go log instrumentation & test package (#10371) 2025-12-09 15:37:50 +01:00
actor_test.go log instrumentation & test package (#10371) 2025-12-09 15:37:50 +01:00
forgefed.go refactor & enhance AP elements used (#7728) 2025-06-02 22:29:10 +02:00
nodeinfo.go add port and schema to federation host (#7203) 2025-04-16 08:07:51 +00:00
object_user_activity_note.go refactor & enhance AP elements used (#7728) 2025-06-02 22:29:10 +02:00
object_user_activity_note_test.go log instrumentation & test package (#10371) 2025-12-09 15:37:50 +01:00
outbox.go fix: add stub outboxes to actors (#10120) 2025-12-01 16:51:35 +01:00
repository.go [v15.0/forgejo]: chore: add modernizer linter (#11949) 2026-04-02 16:54:46 +02:00
repository_test.go log instrumentation & test package (#10371) 2025-12-09 15:37:50 +01:00