Merge pull request 'Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v1.59.0' (#3971) from renovate/github.com-golangci-golangci-lint-cmd-golangci-lint-1.x into forgejo
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3971 Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
This commit is contained in:
commit
b1c16a673d
2 changed files with 4 additions and 4 deletions
2
Makefile
2
Makefile
|
@ -29,7 +29,7 @@ XGO_VERSION := go-1.21.x
|
||||||
AIR_PACKAGE ?= github.com/cosmtrek/air@v1 # renovate: datasource=go
|
AIR_PACKAGE ?= github.com/cosmtrek/air@v1 # renovate: datasource=go
|
||||||
EDITORCONFIG_CHECKER_PACKAGE ?= github.com/editorconfig-checker/editorconfig-checker/v2/cmd/editorconfig-checker@2.8.0 # renovate: datasource=go
|
EDITORCONFIG_CHECKER_PACKAGE ?= github.com/editorconfig-checker/editorconfig-checker/v2/cmd/editorconfig-checker@2.8.0 # renovate: datasource=go
|
||||||
GOFUMPT_PACKAGE ?= mvdan.cc/gofumpt@v0.6.0 # renovate: datasource=go
|
GOFUMPT_PACKAGE ?= mvdan.cc/gofumpt@v0.6.0 # renovate: datasource=go
|
||||||
GOLANGCI_LINT_PACKAGE ?= github.com/golangci/golangci-lint/cmd/golangci-lint@v1.58.2 # renovate: datasource=go
|
GOLANGCI_LINT_PACKAGE ?= github.com/golangci/golangci-lint/cmd/golangci-lint@v1.59.0 # renovate: datasource=go
|
||||||
GXZ_PACKAGE ?= github.com/ulikunitz/xz/cmd/gxz@v0.5.11 # renovate: datasource=go
|
GXZ_PACKAGE ?= github.com/ulikunitz/xz/cmd/gxz@v0.5.11 # renovate: datasource=go
|
||||||
MISSPELL_PACKAGE ?= github.com/golangci/misspell/cmd/misspell@v0.5.1 # renovate: datasource=go
|
MISSPELL_PACKAGE ?= github.com/golangci/misspell/cmd/misspell@v0.5.1 # renovate: datasource=go
|
||||||
SWAGGER_PACKAGE ?= github.com/go-swagger/go-swagger/cmd/swagger@v0.31.0 # renovate: datasource=go
|
SWAGGER_PACKAGE ?= github.com/go-swagger/go-swagger/cmd/swagger@v0.31.0 # renovate: datasource=go
|
||||||
|
|
|
@ -1057,7 +1057,7 @@ func readFileName(rd *strings.Reader) (string, bool) {
|
||||||
char, _ := rd.ReadByte()
|
char, _ := rd.ReadByte()
|
||||||
_ = rd.UnreadByte()
|
_ = rd.UnreadByte()
|
||||||
if char == '"' {
|
if char == '"' {
|
||||||
fmt.Fscanf(rd, "%q ", &name)
|
_, _ = fmt.Fscanf(rd, "%q ", &name)
|
||||||
if len(name) == 0 {
|
if len(name) == 0 {
|
||||||
log.Error("Reader has no file name: reader=%+v", rd)
|
log.Error("Reader has no file name: reader=%+v", rd)
|
||||||
return "", true
|
return "", true
|
||||||
|
@ -1069,12 +1069,12 @@ func readFileName(rd *strings.Reader) (string, bool) {
|
||||||
} else {
|
} else {
|
||||||
// This technique is potentially ambiguous it may not be possible to uniquely identify the filenames from the diff line alone
|
// This technique is potentially ambiguous it may not be possible to uniquely identify the filenames from the diff line alone
|
||||||
ambiguity = true
|
ambiguity = true
|
||||||
fmt.Fscanf(rd, "%s ", &name)
|
_, _ = fmt.Fscanf(rd, "%s ", &name)
|
||||||
char, _ := rd.ReadByte()
|
char, _ := rd.ReadByte()
|
||||||
_ = rd.UnreadByte()
|
_ = rd.UnreadByte()
|
||||||
for !(char == 0 || char == '"' || char == 'b') {
|
for !(char == 0 || char == '"' || char == 'b') {
|
||||||
var suffix string
|
var suffix string
|
||||||
fmt.Fscanf(rd, "%s ", &suffix)
|
_, _ = fmt.Fscanf(rd, "%s ", &suffix)
|
||||||
name += " " + suffix
|
name += " " + suffix
|
||||||
char, _ = rd.ReadByte()
|
char, _ = rd.ReadByte()
|
||||||
_ = rd.UnreadByte()
|
_ = rd.UnreadByte()
|
||||||
|
|
Loading…
Reference in a new issue