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

Telling types of violations one from another #14

Merged

Conversation

iwankgb
Copy link
Contributor

@iwankgb iwankgb commented Nov 13, 2020

Background information is available in golangci/golangci-lint#1500.

What I'm trying to achieve here is to have:

  • violation types being distinguishable one from another
  • types being passed back to program calling goconst.Run()

It useful for us in golangci-lint to start using upstream version of goconst instead of outdated fork that we have been relying on for a while.

Fixes #11.

@iwankgb iwankgb marked this pull request as draft November 14, 2020 15:52
@jgautheron
Copy link
Owner

jgautheron commented Nov 15, 2020

@iwankgb LGTM 👍
If you're OK on your side we can merge it.

@iwankgb
Copy link
Contributor Author

iwankgb commented Nov 15, 2020

@jgautheron not quite yet, I need to work out some integration issues between goconst and golanci-lint.

@iwankgb iwankgb force-pushed the pass_node_information_with_violation branch from fcec674 to 66b9063 Compare November 15, 2020 19:59
@iwankgb
Copy link
Contributor Author

iwankgb commented Nov 15, 2020

@jgautheron I sort of reimplemented it... Now it's much smaller and affects only what strings are not added to Parser.strs. This is enough from golangci-lint perspective and I hope it's fine with you :)

@iwankgb iwankgb marked this pull request as ready for review November 15, 2020 20:01
@iwankgb
Copy link
Contributor Author

iwankgb commented Nov 15, 2020

I would also appreciate if you released another version after merging this PR 🙇

@jgautheron jgautheron merged commit ccae5bf into jgautheron:master Nov 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

More options for golangci-lint
2 participants