Skip to content
This repository has been archived by the owner on Mar 18, 2022. It is now read-only.

Updated master #3

Closed
wants to merge 5 commits into from
Closed

Updated master #3

wants to merge 5 commits into from

Conversation

iwankgb
Copy link

@iwankgb iwankgb commented Nov 7, 2020

Updates master with changes introduces in 2020. Related to golangci/golangci-lint#1495

@golangci/team, I summon you.

jgautheron and others added 5 commits February 27, 2020 16:08
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.
@iwankgb
Copy link
Author

iwankgb commented Nov 7, 2020

Or even @golangci/core-team as @golangci/team seems to miss privileges to merge it.

@ernado
Copy link
Member

ernado commented Nov 7, 2020

@jirfag I can't merge this even on behalf of the @golangci/core-team :(

@iwankgb
Copy link
Author

iwankgb commented Nov 7, 2020

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.

Copy link
Member

@saschagrunert saschagrunert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@iwankgb iwankgb closed this Nov 8, 2020
@iwankgb
Copy link
Author

iwankgb commented Nov 8, 2020

We should be able to use upstream version now: jgautheron@ce0d7c0

@iwankgb iwankgb deleted the updated_master branch November 8, 2020 17:08
@ernado
Copy link
Member

ernado commented Nov 8, 2020

Great!
Please link MR/issue of switching to goconst upstream here :)

I hope that we will eventually switch to upstream all our forks.

@iwankgb
Copy link
Author

iwankgb commented Nov 8, 2020

Replacing fork with upstream PR: golangci/golangci-lint#1500

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
5 participants