profile
viewpoint

Ask questionsGolangci-lint Incompatibility with newer versions of Go?

I'm running version Go v1.13 and GoLangCI-Lint v1.17.1. .golangci.yml: goconfig.txt Go Version: go1.13 darwin/amd64

I'm experiencing some encoding issues when I run GoLangCI-Lint against my code. It looks like the linter is raising issue with the Go standard libraries (strings, fmt, etc.).

*golangci-lint run output main.go:1: /usr/local/go/src/strconv/quote.go:405:12: ValidString not declared by package utf8 (typecheck)

main.go:1: /usr/local/go/src/bytes/reader.go:98:18: DecodeRune not declared by package utf8 (typecheck)

package main pkg/cpu/cpu.go:1: /usr/local/go/src/fmt/scan.go:1200:16: DecodeRuneInString not declared by package utf8 (typecheck)

package ------ pkg/------/------.go:1: /usr/local/go/src/path/match.go:200:15: DecodeRuneInString not declared by package utf8 (typecheck)

golangci/golangci-lint

Answer questions tpounds

@temoto Agreed. I must have incorrectly categorized this when I was traiging the backlog of open issues. I've updated this issue with a more appropriate label.

useful!

Related questions

confusing error message "File is not goimports-ed (goimports)" hot 3
confusing error message "File is not goimports-ed (goimports)" - golangci-lint hot 2
please surpport ignore someOne fuction's igored error hot 1
Setting GO111MODULE=on for golangci.com hot 1
golangci-lint "DecodeRune not declared by package utf8" with golang 1.13 hot 1
Cannot `go get` due to invalid pseudo-version hot 1
go get cmd/golangci-lint fails on Go 1.13 (tip) which uses proxy.golang.org (HTTP error 410 Gone) hot 1
Install golangci-lint locally using Windows hot 1
go get cmd/golangci-lint fails on Go 1.13 (tip) which uses proxy.golang.org (HTTP error 410 Gone) hot 1
panic on bodyclose hot 1
concurrent map access on 1.17.1 hot 1
[Feature] TODO/FIXME linter hot 1
Failed to build golangci-lint v1.17.1 when enable GO111MODULE hot 1
Build errors using Go 1.13 hot 1
BUG: failed run hot 1
source:https://uonfu.com/
Github User Rank List