gitea/modules
silverwind b18c047d62
Upgrade gopls to v0.19.0, add make fix (#34772)
Upgrade to
[v0.19.0](https://github.com/golang/tools/releases/tag/gopls%2Fv0.19.0)
and fix issues. Runs with new `warning` serverity setting. This likely
does less checks than before. Additionally, add `make fix` which runs
modernize. This is also verified on CI.

For the record, here are the issues discoverd when running with `info`
severity, in case we want to fix these:

```
tests/integration/repo_test.go:95:5-14: could use tagged switch on i
tests/integration/api_packages_generic_test.go:149:4-64: could use tagged switch on setting.Packages.Storage.Type
services/webhook/msteams_test.go:33:4-33: could use tagged switch on fact.Name
services/webhook/msteams_test.go:59:4-33: could use tagged switch on fact.Name
services/webhook/msteams_test.go:85:4-33: could use tagged switch on fact.Name
services/webhook/msteams_test.go:111:4-33: could use tagged switch on fact.Name
services/webhook/msteams_test.go:138:4-33: could use tagged switch on fact.Name
services/webhook/msteams_test.go:161:4-33: could use tagged switch on fact.Name
services/webhook/msteams_test.go:187:4-33: could use tagged switch on fact.Name
services/webhook/msteams_test.go:213:4-33: could use tagged switch on fact.Name
services/webhook/msteams_test.go:239:4-33: could use tagged switch on fact.Name
services/webhook/msteams_test.go:266:4-33: could use tagged switch on fact.Name
services/webhook/msteams_test.go:407:4-33: could use tagged switch on fact.Name
tests/integration/api_packages_conan_test.go:350:6-33: could use tagged switch on pf.Name
models/issues/tracked_time_test.go:98:3-18: could use tagged switch on user.ID
tests/integration/api_token_test.go:505:5-43: could use tagged switch on minRequiredLevel
services/gitdiff/gitdiff.go:220:33-46: method "getLineLegacy" is unused
```

---------

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2025-06-18 19:30:40 +00:00
..
actions Fix remaining issues after gopls modernize formatting (#34771) 2025-06-18 11:37:49 -07:00
activitypub
analyze
assetfs Refactor embedded assets and drop unnecessary dependencies (#34692) 2025-06-12 03:59:33 +00:00
auth Run gopls modernize on codebase (#34751) 2025-06-18 01:48:09 +00:00
avatar Run gopls modernize on codebase (#34751) 2025-06-18 01:48:09 +00:00
badge Add flat-square action badge style (#34062) 2025-04-01 09:42:10 +00:00
base Add material icons for file list (#33837) 2025-03-10 15:57:17 +08:00
cache Run gopls modernize on codebase (#34751) 2025-06-18 01:48:09 +00:00
cachegroup Cache GPG keys, emails and users when list commits (#34086) 2025-04-09 16:34:38 +00:00
charset Run gopls modernize on codebase (#34751) 2025-06-18 01:48:09 +00:00
commitstatus Keeping consistent between UI and API about combined commit status state and fix some bugs (#34562) 2025-06-09 04:05:33 +00:00
container
csv Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
dump Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
emoji
eventsource
fileicon support the open-icon of folder (#34168) 2025-04-28 19:51:32 -07:00
generate
git Run gopls modernize on codebase (#34751) 2025-06-18 01:48:09 +00:00
gitrepo Refactor Branch struct in package modules/git (#33980) 2025-04-02 17:31:32 +00:00
globallock Run gopls modernize on codebase (#34751) 2025-06-18 01:48:09 +00:00
graceful Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
gtprof enable staticcheck QFxxxx rules (#34064) 2025-03-29 17:32:28 -04:00
hcaptcha
highlight Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
hostmatcher Run gopls modernize on codebase (#34751) 2025-06-18 01:48:09 +00:00
htmlutil
httpcache Run gopls modernize on codebase (#34751) 2025-06-18 01:48:09 +00:00
httplib Make public URL generation configurable (#34250) 2025-04-22 06:49:37 +08:00
indexer Run gopls modernize on codebase (#34751) 2025-06-18 01:48:09 +00:00
issue/template Run gopls modernize on codebase (#34751) 2025-06-18 01:48:09 +00:00
json Fix some migration and repo name problems (#33986) 2025-03-24 20:26:58 -07:00
label Run gopls modernize on codebase (#34751) 2025-06-18 01:48:09 +00:00
lfs Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
lfstransfer Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
log Run gopls modernize on codebase (#34751) 2025-06-18 01:48:09 +00:00
markup Run gopls modernize on codebase (#34751) 2025-06-18 01:48:09 +00:00
mcaptcha
metrics feat: add label 'state' to metric 'gitea_users' (#34326) 2025-05-07 18:00:53 +00:00
migration Refactor embedded assets and drop unnecessary dependencies (#34692) 2025-06-12 03:59:33 +00:00
nosql
optional Refactor some file edit related code (#34744) 2025-06-18 01:18:07 +00:00
options Refactor embedded assets and drop unnecessary dependencies (#34692) 2025-06-12 03:59:33 +00:00
packages Fix some package registry problems (#34759) 2025-06-19 00:32:43 +08:00
paginator Only use prev and next buttons for pagination on user dashboard (#33981) 2025-03-23 19:52:43 +00:00
pprof
private Fix a bug when uploading file via lfs ssh command (#34408) 2025-05-09 16:17:08 +00:00
process
proxy
proxyprotocol Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
public Upgrade gopls to v0.19.0, add make fix (#34772) 2025-06-18 19:30:40 +00:00
queue Run gopls modernize on codebase (#34751) 2025-06-18 01:48:09 +00:00
recaptcha
references Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
regexplru Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
repository Run gopls modernize on codebase (#34751) 2025-06-18 01:48:09 +00:00
reqctx Run gopls modernize on codebase (#34751) 2025-06-18 01:48:09 +00:00
secret
session Enforce two-factor auth (2FA: TOTP or WebAuthn) (#34187) 2025-04-28 15:31:59 -07:00
setting Fix remaining issues after gopls modernize formatting (#34771) 2025-06-18 11:37:49 -07:00
sitemap
ssh Update x/crypto package and make builtin SSH use default parameters (#34667) 2025-06-09 19:51:02 +00:00
storage Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
structs Support annotated tags when using create release API (#31840) 2025-06-18 05:12:38 +00:00
svg
sync
system Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
tailmsg
tempdir Uniform all temporary directories and allow customizing temp path (#32352) 2025-04-08 16:15:28 +00:00
templates Run gopls modernize on codebase (#34751) 2025-06-18 01:48:09 +00:00
test Validate hex colors when creating/editing labels (#34623) 2025-06-07 11:25:08 +03:00
testlogger Run gopls modernize on codebase (#34751) 2025-06-18 01:48:09 +00:00
timeutil Refactor embedded assets and drop unnecessary dependencies (#34692) 2025-06-12 03:59:33 +00:00
translation Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
turnstile
typesniffer
updatechecker Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
uri
user
util Run gopls modernize on codebase (#34751) 2025-06-18 01:48:09 +00:00
validation Run gopls modernize on codebase (#34751) 2025-06-18 01:48:09 +00:00
web Run gopls modernize on codebase (#34751) 2025-06-18 01:48:09 +00:00
webhook Add workflow_job webhook (#33694) 2025-03-11 10:40:38 -07:00
zstd Refactor embedded assets and drop unnecessary dependencies (#34692) 2025-06-12 03:59:33 +00:00