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

duplicate exhaustivestruct linters #2923

Closed
4 tasks done
switchupcb opened this issue Jun 16, 2022 · 3 comments
Closed
4 tasks done

duplicate exhaustivestruct linters #2923

switchupcb opened this issue Jun 16, 2022 · 3 comments
Labels
question Further information is requested

Comments

@switchupcb
Copy link

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

v1.46.2

disable:
  - exhaustivestruct # results in exhaustruct issues
  - exhaustruct # ignores all exhaustivestruct complaints

Version of golangci-lint

$ golangci-lint --version
# Paste output here

Configuration file

$ cat .golangci.yml
# paste output here

Go environment

$ go version && go env
# paste output here

Verbose output of running

$ golangci-lint cache clean
$ golangci-lint run -v
# paste output here

Code example or link to a public repository

// add your code here
@switchupcb switchupcb added the bug Something isn't working label Jun 16, 2022
@boring-cyborg
Copy link

boring-cyborg bot commented Jun 16, 2022

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

@ldez ldez added question Further information is requested and removed bug Something isn't working labels Jun 16, 2022
@ldez
Copy link
Member

ldez commented Jun 16, 2022

Hello,

it's 2 different linters: one is deprecated (exhaustivestruct) and replaced by the second (exhaustruct)

https://golangci-lint.run/usage/linters/#exhaustivestruct
https://golangci-lint.run/usage/linters/#exhaustruct

#2667

@ldez ldez closed this as completed Jun 16, 2022
@switchupcb
Copy link
Author

Related: #1987

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants