Skip to content

Detects Go 1.18 Fuzz methods as unused code #2650

Closed
@Hades32

Description

@Hades32

Welcome

  • Yes, I'm using a binary release within 2 latest major releases. Only such installations are supported.
  • Yes, I've searched similar issues on GitHub and didn't find any.
  • Yes, I've included all information below (version, config, etc).
  • Yes, I've tried with the standalone linter if available. (https://golangci-lint.run/usage/linters/)

Description of the problem

$ golangci-lint run                                                          
grid_test.go:128:6: `FuzzRectVsGrid` is unused (deadcode)
func FuzzRectVsGrid(f *testing.F) {

Version of golangci-lint

golangci-lint has version v1.44.2 built from (unknown, mod sum: "h1:MzvkDt1j1OHkv42/feNJVNNXRFACPp7aAWBWDo5aYQw=") on (unknown)

Configuration file

none

Go environment

go version go1.18 linux/amd64

Verbose output of running

Code example or link to a public repository

func FuzzRectVsGrid(f *testing.F) {
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions