-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Using upstream maligned and updating error message #1555
Conversation
The new error message might cause an issue for the people that have set up rules in the config file, but my assumption is that if you have a rule to exclude this message then the whole linter becomes useless. That being said maybe someone can prove me wrong on that. I'm assuming it's also expected to have some messages change when we update a linter since we usually don't own the code and are bound to whatever happens upstream. The biggest issue is, IMO, the fact that we're fully losing the "suggestion" that we get with We gonna need more people to weigh on if we want to merge this PR not. We could also have someone send a new PR to maligned to add support for |
@golangci/team, can more of your express an opinion? |
I don't see any problem changing message. Similar thing happened when we bumped gochecknoglobals f.ex. It's easy to pin a version of If I remember correctly, one of the reasons why |
I shared the opinion of @Nivl about suggestions:
|
There is no consensus therefore it won't be merged. |
Note that as of last week, maligned has been deprecated. The recommandation is to switch to https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/fieldalignment |
It seems that we can swap our
maligned
fork for the upstream version, but messages from upstream are slightly different from those that have been used so far. I'm not sure how big issue it can be and I would like to discuss it.https://github.com/golangci/maligned/commits/master
https://github.com/mdempsky/maligned/commits/master