jojo/models/gitea_migrations
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
..
base fix: use ALTER TABLE in SQLite DropTableColumns(), allowing unexpected database sources to work better in migrations (#10888) 2026-01-17 21:28:35 +01:00
fixtures fix(models): deduplicate project sorting values and add unique constraints (#11334) 2026-02-27 16:25:20 +01:00
test chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
v1_6 chore: unify the usage of CryptoRandomString (#10110) 2025-11-15 13:24:53 +01:00
v1_7 chore: rename 'migrations' to 'gitea_migrations' 2025-10-14 14:40:49 -06:00
v1_8 chore: rename 'migrations' to 'gitea_migrations' 2025-10-14 14:40:49 -06:00
v1_9 chore: unify the usage of CryptoRandomString (#10110) 2025-11-15 13:24:53 +01:00
v1_10 chore: rename 'migrations' to 'gitea_migrations' 2025-10-14 14:40:49 -06:00
v1_11 chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
v1_12 chore: rename 'migrations' to 'gitea_migrations' 2025-10-14 14:40:49 -06:00
v1_13 ci: detect and prevent empty case statements in Go code (#11593) 2026-03-10 02:50:28 +01:00
v1_14 chore: rename 'migrations' to 'gitea_migrations' 2025-10-14 14:40:49 -06:00
v1_15 chore: fix typos throughout the codebase (#10753) 2026-01-26 22:57:33 +01:00
v1_16 chore: rename 'migrations' to 'gitea_migrations' 2025-10-14 14:40:49 -06:00
v1_17 chore: rename 'migrations' to 'gitea_migrations' 2025-10-14 14:40:49 -06:00
v1_18 refactor: migrate from lib/pq to jackc/pgx (#10219) 2025-11-30 17:47:45 +01:00
v1_19 chore: rename 'migrations' to 'gitea_migrations' 2025-10-14 14:40:49 -06:00
v1_20 chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
v1_21 chore: fix typos throughout the codebase (#10753) 2026-01-26 22:57:33 +01:00
v1_22 chore: rename 'migrations' to 'gitea_migrations' 2025-10-14 14:40:49 -06:00
v1_23 chore: rename 'migrations' to 'gitea_migrations' 2025-10-14 14:40:49 -06:00
main_test.go fix: strict error handling on corrupted DB migration tracking tables (#9773) 2025-10-20 18:03:30 +02:00
migrations.go chore: fix typos throughout the codebase (#10753) 2026-01-26 22:57:33 +01:00
migrations_test.go fix: strict error handling on corrupted DB migration tracking tables (#9773) 2025-10-20 18:03:30 +02:00