Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Staticcheck Go Version from go.mod #2911

Closed
elgohr opened this issue Jun 8, 2022 · 2 comments
Closed

Staticcheck Go Version from go.mod #2911

elgohr opened this issue Jun 8, 2022 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@elgohr
Copy link

elgohr commented Jun 8, 2022

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

@elgohr elgohr added the enhancement New feature or improvement label Jun 8, 2022
@boring-cyborg
Copy link

boring-cyborg bot commented Jun 8, 2022

Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors.

@ldez ldez self-assigned this Jun 8, 2022
@ldez
Copy link
Member

ldez commented Jun 14, 2022

duplicate of #2158
Closed by #2913

@ldez ldez closed this as completed Jun 14, 2022
@ldez ldez added duplicate This issue or pull request already exists and removed enhancement New feature or improvement labels Jun 14, 2022
@ldez ldez removed their assignment Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants