gitea
gitea copied to clipboard
Clean up revive linter config, tweak golangci output
The errorCode and warningCode options were removed at some point, they are not recognized by golangci-lint any more at least and they do not match their published json schema. confidence and ignore-generated-header are at the default value so does not need to be configured.
https://golangci-lint.run/usage/linters/#revive
Lint output tweaked, sort by file and show count of errors below.
go run github.com/golangci/golangci-lint/cmd/[email protected] run
modules/base/tool.go:70:2: increment-decrement: should replace minutes -= 1 with minutes-- (revive)
minutes -= 1
^
modules/base/tool.go:71:2: increment-decrement: should replace minutes += 1 with minutes++ (revive)
minutes += 1
^
2 issues:
* revive: 2
exit status 1
make: *** [Makefile:408: lint-go] Error 1