mirror of
https://github.com/go-gitea/gitea.git
synced 2024-05-11 05:55:29 +00:00
Upgrade golangci-lint to v1.57.2 (#30401)
Update and adapt to one setting [deprecation](https://github.com/golangci/golangci-lint/pull/4509).
This commit is contained in:
+1
-4
@@ -30,10 +30,6 @@ linters:
|
||||
|
||||
run:
|
||||
timeout: 10m
|
||||
skip-dirs:
|
||||
- node_modules
|
||||
- public
|
||||
- web_src
|
||||
|
||||
linters-settings:
|
||||
stylecheck:
|
||||
@@ -94,6 +90,7 @@ linters-settings:
|
||||
issues:
|
||||
max-issues-per-linter: 0
|
||||
max-same-issues: 0
|
||||
exclude-dirs: [node_modules, public, web_src]
|
||||
exclude-rules:
|
||||
# Exclude some linters from running on tests files.
|
||||
- path: _test\.go
|
||||
|
||||
@@ -28,7 +28,7 @@ XGO_VERSION := go-1.22.x
|
||||
AIR_PACKAGE ?= github.com/cosmtrek/[email protected]
|
||||
EDITORCONFIG_CHECKER_PACKAGE ?= github.com/editorconfig-checker/editorconfig-checker/cmd/[email protected]
|
||||
GOFUMPT_PACKAGE ?= mvdan.cc/[email protected]
|
||||
GOLANGCI_LINT_PACKAGE ?= github.com/golangci/golangci-lint/cmd/[email protected]6.1
|
||||
GOLANGCI_LINT_PACKAGE ?= github.com/golangci/golangci-lint/cmd/[email protected]7.2
|
||||
GXZ_PACKAGE ?= github.com/ulikunitz/xz/cmd/[email protected]
|
||||
MISSPELL_PACKAGE ?= github.com/golangci/misspell/cmd/[email protected]
|
||||
SWAGGER_PACKAGE ?= github.com/go-swagger/go-swagger/cmd/swagger@db51e79a0e37c572d8b59ae0c58bf2bbbbe53285
|
||||
|
||||
Reference in New Issue
Block a user