Skip to content

errcheck issue isn't reported #657

@ferhatelmas

Description

@ferhatelmas

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:

  1. Version of golangci-lint:
    1.17.1

  2. Config file: cat .golangci.yml
    https://gist.github.com/ferhatelmas/62bbfdb744316f24a9d207c5bac0bcf7

  3. Go environment: go version && go env
    https://gist.github.com/ferhatelmas/d85e9c6dc8ce7850da37e641c87f283f

  4. Verbose output of running: golangci-lint run -v
    https://gist.github.com/ferhatelmas/4b92c91cff8456d21084494c849970f7

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdependenciesRelates to an upstream dependencyfalse negativeAn error is not reported when one exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions