-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
bugSomething isn't workingSomething isn't workingdependenciesRelates to an upstream dependencyRelates to an upstream dependencyfalse negativeAn error is not reported when one existsAn error is not reported when one exists
Description
It is expected to get an errcheck lint error in the following program.
errcheck reports but golangci-lint doesn't.
package main
import (
"fmt"
"os"
)
func main() {
os.Setenv("test", "some_value")
fmt.Println("no lint error")
}Please include the following information:
-
Version of golangci-lint:
1.17.1 -
Config file:
cat .golangci.yml
https://gist.github.com/ferhatelmas/62bbfdb744316f24a9d207c5bac0bcf7 -
Go environment:
go version && go env
https://gist.github.com/ferhatelmas/d85e9c6dc8ce7850da37e641c87f283f -
Verbose output of running:
golangci-lint run -v
https://gist.github.com/ferhatelmas/4b92c91cff8456d21084494c849970f7
corneliusweig and JohnStarich
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingdependenciesRelates to an upstream dependencyRelates to an upstream dependencyfalse negativeAn error is not reported when one existsAn error is not reported when one exists