silverwind
32728fc581
chore: misc go 1.27 tweaks ( #39069 )
...
Follow-up to https://github.com/go-gitea/gitea/pull/39068 , which
disabled `modernize` entirely.
- re-enable `modernize`, with only the new `embedlit` rule disabled. It
flattens embedded struct literals across ~145 files, and orphans imports
in 6 of them that the fixer does not remove
- apply the rest of the suite: `errors.AsType`, `reflect.TypeAssert`,
`strings.Cut`, and dropping the legacy import comment
- use the new stdlib `uuid` package, `github.com/google/uuid` becomes
indirect
- use `strings.CutLast` in place of manual `LastIndex` slicing in label
scopes, email domains and the diff tree list
- take the header lint skip dirs from the `go.mod` `ignore` directive
and skip dot-directories, instead of hardcoding the list
Assisted-by: Claude Code:claude-opus-5
2026-08-24 18:26:10 +00:00
..
2026-07-20 03:42:02 +00:00
2026-08-07 20:56:40 -07:00
2026-08-07 20:56:40 -07:00
2026-08-07 20:56:40 -07:00
2026-08-24 07:28:17 +00:00
2026-08-07 20:56:40 -07:00
2026-08-07 20:56:40 -07:00
2026-08-07 20:56:40 -07:00
2026-08-12 19:03:44 +02:00
2026-08-07 20:56:40 -07:00
2026-07-15 02:36:03 +00:00
2026-07-25 21:31:19 +00:00
2026-08-07 20:56:40 -07:00
2026-07-27 17:45:27 +00:00
2026-08-07 20:56:40 -07:00
2026-08-13 09:36:41 +02:00
2026-08-14 22:23:30 +08:00
2026-08-12 19:55:26 +00:00
2026-08-22 18:47:55 +00:00
2026-08-07 20:56:40 -07:00
2026-08-22 09:29:25 +02:00
2026-08-22 21:32:59 +00:00
2026-08-09 10:25:06 +00:00
2026-08-17 20:30:24 +00:00
2026-07-25 20:39:36 +08:00
2026-07-12 17:14:09 +00:00
2026-08-17 20:30:24 +00:00
2026-07-12 17:14:09 +00:00
2026-08-20 15:57:17 +00:00
2026-08-23 07:23:16 +00:00
2026-07-16 11:51:36 +02:00
2026-07-28 17:04:22 +00:00
2026-08-24 07:28:17 +00:00
2026-08-09 10:25:06 +00:00
2026-08-09 10:25:06 +00:00
2026-08-17 17:43:34 +00:00
2026-07-12 17:14:09 +00:00
2026-08-09 12:55:43 +00:00
2026-08-09 10:25:06 +00:00
2026-08-24 18:00:44 +00:00
2026-08-24 07:28:17 +00:00
2026-08-07 11:49:23 +00:00
2026-08-09 10:25:06 +00:00
2026-08-24 07:28:17 +00:00
2026-08-24 07:28:17 +00:00
2026-08-09 10:25:06 +00:00
2026-08-24 18:26:10 +00:00
2026-08-17 20:30:24 +00:00
2026-08-24 07:28:17 +00:00
2026-08-20 15:57:17 +00:00
2026-08-17 20:30:24 +00:00
2026-07-12 17:14:09 +00:00
2026-08-09 10:25:06 +00:00
2026-08-24 07:28:17 +00:00
2026-08-21 07:06:56 +00:00
2026-07-20 16:07:38 +00:00
2026-08-03 06:41:27 +00:00
2026-08-03 06:41:27 +00:00
2026-08-20 15:57:17 +00:00
2026-07-28 17:04:22 +00:00
2026-08-03 06:41:27 +00:00
2026-08-03 06:41:27 +00:00
2026-08-05 17:19:31 +00:00
2026-07-28 17:04:22 +00:00
2026-07-12 17:14:09 +00:00
2026-07-31 11:05:41 +00:00
2026-08-23 06:35:55 +00:00
2026-08-21 07:28:23 +00:00
2026-08-23 06:35:55 +00:00
2026-07-12 17:14:09 +00:00
2026-07-12 17:14:09 +00:00
2026-08-22 23:11:04 -07:00
2026-07-16 17:38:33 +00:00
2026-08-22 08:08:36 +00:00
2026-08-24 17:32:23 +00:00
2026-08-14 02:15:33 +00:00
2026-08-09 10:25:06 +00:00
2026-07-20 16:07:38 +00:00
2026-07-28 17:04:22 +00:00
2026-07-28 17:04:22 +00:00
2026-07-12 17:14:09 +00:00
2026-07-28 17:04:22 +00:00
2026-07-20 16:07:38 +00:00
2026-07-28 17:04:22 +00:00
2026-08-22 11:04:35 +00:00
2026-07-12 17:14:09 +00:00
2026-07-16 21:38:39 +00:00
2026-08-09 10:25:06 +00:00
2026-07-23 14:31:29 +00:00
2026-07-12 17:14:09 +00:00
2026-08-08 07:35:13 +00:00
2026-07-31 11:05:41 +00:00
2026-07-31 14:16:27 +00:00
2026-08-11 18:01:02 +02:00
2026-07-28 17:04:22 +00:00
2026-07-28 17:04:22 +00:00
2026-07-28 17:04:22 +00:00
2026-08-09 10:25:06 +00:00
2026-08-24 18:26:10 +00:00
2026-08-21 07:28:23 +00:00
2026-08-17 20:30:24 +00:00
2026-08-17 20:30:24 +00:00
2026-08-08 13:53:28 +00:00
2026-08-08 07:35:13 +00:00
2026-07-28 17:04:22 +00:00
2026-08-02 21:30:59 +00:00
2026-07-20 16:07:38 +00:00
2026-08-22 08:59:37 +00:00
2026-08-10 01:25:31 +00:00
2026-08-23 06:59:58 +00:00
2026-08-17 07:59:41 +00:00
2026-08-05 00:17:07 +08:00
2026-08-07 20:56:40 -07:00
2026-08-03 06:41:27 +00:00
2026-08-18 04:02:52 +00:00
2026-08-09 11:32:50 +00:00
2026-08-17 18:17:16 +00:00
2026-08-10 01:25:31 +00:00
2026-08-07 00:11:34 +00:00