1
1
mirror of https://github.com/go-gitea/gitea synced 2025-12-06 21:08:25 +00:00

Replace lint-go-gopls with additional govet linters (#36028)

Many (but not all) analyzers ran by `gopls check` are available in
`golangci-lint` as part of default-disabled `govet` linters, so I think
it's best we remove this manual linting step and let `golangci-lint`
handle it. I hand-picked two available linters that were previously
linted using gopls and this list is not exhaustive.

This will reduce CI time by about 3 minutes.
This commit is contained in:
silverwind
2025-11-29 15:13:22 +01:00
committed by GitHub
parent f4e38e6367
commit b54af8811e
3 changed files with 5 additions and 31 deletions

View File

@@ -114,6 +114,10 @@ linters:
- stringsbuilder
perfsprint:
concat-loop: false
govet:
enable:
- nilness
- unusedwrite
exclusions:
generated: lax
presets: