-
Notifications
You must be signed in to change notification settings - Fork 3
Conversation
Add support for the -set_exit_status flag to goconst, inspired by the same flag on the prealloc tool [1]. I updated the help message accordingly. The exit status is set to `2` to distinguish it from an non-recoverable error, indicated by an exit status of `1`. I implemented this by hvaing the `run` function return an additional value indicating if anyIssues were found. `run` gets this information from `printOutput` and returns it directly. This is needed because `printOutput` does some additional processing of the duplicates found (namely checking if there are enough occurances of a given constant). If there is any error in the program, this always takes precedence over issues found by goconst. -- 1. https://github.com/alexkohler/prealloc
Update the usage message found in the README.
Or even @golangci/core-team as @golangci/team seems to miss privileges to merge it. |
@jirfag I can't merge this even on behalf of the @golangci/core-team :( |
This is some serious black magic. It makes me think that we should work with liter maintainers to enable library usage in the upstream. There are more similar forks here and I guess we can't merge PRs to them either. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
We should be able to use upstream version now: jgautheron@ce0d7c0 |
Great! I hope that we will eventually switch to upstream all our forks. |
Replacing fork with upstream PR: golangci/golangci-lint#1500 |
Updates master with changes introduces in 2020. Related to golangci/golangci-lint#1495
@golangci/team, I summon you.