gitea/modules/util
silverwind d8da91a7f2
Update golangci-lint to v2.11.4 (#37059)
Update golangci-lint from v2.11.2 to v2.11.4 and fix new `modernize`
lint warnings:

- Use `strings.Builder` instead of string concatenation in loop
(`evaluator.go`)
- Use `atomic.Int64` instead of `int64` with atomic free functions
(`logchecker.go`, `timer_test.go`, `integration_test.go`)

---
This PR was written with the help of Claude Opus 4.6

Co-authored-by: Claude (Opus 4.6) <noreply@anthropic.com>
2026-03-31 16:22:23 +00:00
..
filebuffer Uniform all temporary directories and allow customizing temp path (#32352) 2025-04-08 16:15:28 +00:00
rotatingfilewriter Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +00:00
buffer.go Use merge tree to detect conflicts when possible (#36400) 2026-01-27 11:57:20 -08:00
color.go Address some CodeQL security concerns (#35572) 2025-10-04 01:21:26 +08:00
color_test.go Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
error.go Honor delete branch on merge repo setting when using merge API (#35488) 2025-10-22 05:06:56 +00:00
error_test.go Honor delete branch on merge repo setting when using merge API (#35488) 2025-10-22 05:06:56 +00:00
file_unix.go
file_unix_test.go
file_windows.go
io.go Limit reading bytes instead of ReadAll (#35928) 2025-11-12 19:44:49 +08:00
io_test.go Fix profile render when the README.md size is larger than 1024 bytes (#25131) 2023-06-13 09:02:25 +00:00
keypair.go Enable `unparam` linter (#31277) 2024-06-11 18:47:45 +00:00
keypair_test.go Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
legacy.go
legacy_test.go Upgrade golangci-lint to v1.64.5 (#33654) 2025-02-21 00:05:40 +08:00
map.go Fix possible panic (#34508) 2025-05-22 12:59:42 +00:00
map_test.go Fix possible panic (#34508) 2025-05-22 12:59:42 +00:00
pack.go Replace `interface{}` with `any` (#25686) 2023-07-04 18:36:08 +00:00
pack_test.go Add support for incoming emails (#22056) 2023-01-14 23:57:10 +08:00
paginate.go Replace `interface{}` with `any` (#25686) 2023-07-04 18:36:08 +00:00
paginate_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
path.go Fix artifacts v4 backend upload problems (#36805) 2026-03-05 16:49:01 +01:00
path_test.go Fix path resolving (#36734) 2026-02-25 01:21:07 +00:00
remove.go Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +00:00
runtime.go Move some functions to gitrepo package (#35543) 2025-10-07 17:06:51 +08:00
runtime_test.go Move some functions to gitrepo package (#35543) 2025-10-07 17:06:51 +08:00
sanitize.go Refactor to use UnsafeStringToBytes (#31358) 2024-06-14 01:26:33 +00:00
sanitize_test.go
sec_to_time.go Worktime tracking for the organization level (#19808) 2025-02-03 01:51:12 +08:00
sec_to_time_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
shellquote.go
shellquote_test.go Refactor older tests to use testify (#33140) 2025-01-09 09:21:47 +08:00
slice.go Enable gocritic `equalFold` and fix issues (#34952) 2025-07-06 16:53:34 +00:00
slice_test.go Replace `util.SliceXxx` with `slices.Xxx` (#26958) 2023-09-07 09:37:47 +00:00
string.go Fix http auth header parsing (#34936) 2025-07-03 03:02:38 +00:00
string_test.go Do not render truncated links in markdown (#32980) 2024-12-26 00:33:55 +08:00
time_str.go Enable gocritic `equalFold` and fix issues (#34952) 2025-07-06 16:53:34 +00:00
time_str_test.go Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
timer.go Rewrite queue (#24505) 2023-05-08 19:49:59 +08:00
timer_test.go Update golangci-lint to v2.11.4 (#37059) 2026-03-31 16:22:23 +00:00
truncate.go Fix various bugs (#35177) 2025-07-30 07:08:59 +00:00
truncate_test.go Fix various bugs (#35177) 2025-07-30 07:08:59 +00:00
url.go Remove `util.URLJoin` and replace all callers with direct path concatenation (#36867) 2026-03-09 02:30:54 +08:00
util.go feat: Add configurable permissions for Actions automatic tokens (#36173) 2026-03-21 15:39:47 -07:00
util_test.go Remove `util.URLJoin` and replace all callers with direct path concatenation (#36867) 2026-03-09 02:30:54 +08:00