golangci-lint Questions

4

Solved

I'm using RHEL 8.6 and my Go version is the following: $ go version go version go1.18.3 linux/amd64 I'm trying to install locally golangci-lint and none of the described ways in the documentation ...
Tanny asked 8/7, 2022 at 12:55

1

I get this warning: main.go:72: line is 191 characters (lll) klog.Fatalf("no ...") //nolint:lll I added nolint:lll, but this does not silence this warning. We use https://golangci-lint....
Unlimber asked 25/1, 2023 at 10:12

1

I upgraded the version of go to go1.18.3, following the instruction on https://go.dev/doc/install: rm -rf /usr/local/go && tar -C /usr/local -xzf go1.18.3.linux-amd64.tar.gz export PATH=$PA...
Ardatharde asked 17/6, 2022 at 8:9

3

Solved

Q: How do I resolve this madness between the ireturn and nolintlint linters? Details: I have a Golang function with this signature func NewClientCredentialsTokenSource( issuer string, clientId st...
Hawkweed asked 26/5, 2022 at 0:6

2

Solved

I'm using golangci-lint and I'm getting an error on the following code: versions []ObjectDescription ... (populate versions) ... for i, v := range versions { res := createWorkerFor(&v) ... ...
Northerner asked 18/6, 2020 at 8:55

1

Solved

I started a new go projects a few days ago, and I use golangci-lint to make my code in good style. I found gochecknoinits is one of linters of golangci-lint, and it tells me not to use init. In my...
Knopp asked 8/5, 2019 at 10:57
1

© 2022 - 2024 — McMap. All rights reserved.