Skip to content

Staticcheck Go Version from go.mod #2911

Closed
@elgohr

Description

@elgohr

Your feature request related to a problem? Please describe.

Staticcheck is using a go 1.13 for linting, even if the scanned project uses a different version.

Describe the solution you'd like.

Would be great if the default go version for staticcheck (https://github.com/golangci/golangci-lint/blob/master/pkg/golinters/staticcheck_common.go#L28) would be gotten from go.mod.

Describe alternatives you've considered.

Keep it as is.

Additional context.

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions