pingu icon indicating copy to clipboard operation
pingu copied to clipboard

Mismatch Go version between go.mod and golangci-lint.yaml

Open sheepla opened this issue 2 years ago • 1 comments

I'm developing on Go v1.18 but golangci-lint is settings are set to a different version. So I want to fix.

#10 Thank you for notice me, johnmanjiro13!

sheepla avatar Jun 16 '22 10:06 sheepla

golangci-lint#2649

some rules in go-critic (hugeParam, rangeValCopy, typeDefFirst, paramTypeCombine) don't work with generics and must be disabled by hand if you are not using generics (and your dependencies) you can use the following configuration:

run:
  go: '1.17'

This code in this repository hasn't used generics yet, so it doesn't seem to matter if it stays at v1.17.

sheepla avatar Jun 18 '22 09:06 sheepla