golangci / golangci-lint Public
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
feat: add exhaustruct
linter
#2667
Conversation
Hey, thank you for opening your first Pull Request ! |
Hello @xobotyi, why didn't you do a PR on exhaustivestruct instead of creating a copy? I think that you will have a license issue. |
@ldez pr is there for like.. half a year now. mbilski/exhaustivestruct#17 Linter name and codebases are different (codebase, actually, is complete rewrite) why there should be a licensing issues? Not even saying that |
The MIT license is clear:
|
@ldez as said - the code is completely mine and have nothing in common (except purpose and usage of analyzer) with other linter - it can't be treated as "modification". |
My login is LDEZ |
@ldez oh that's why siggestion didn't worked out |
also, you don't need to ping me on every message. |
Can you rebase your PR? Thanks. |
Done |
You don't need to squash, the PR is squashed during the merge. |
I dont squash, it is ammend (habit from gerrit - review tool that im using at work). |
The conclusion is the same: all the previous commits have been squashed into one commit. this is not a good practice on GitHub because we lost the history of changes. Otherwise, I recommend using https://git-scm.com/docs/git-push I also recommend not using the branch https://blog.jasonmeridth.com/posts/do-not-issue-pull-requests-from-your-master-branch/ |
This linter can be called a successor of `exhaustivestruct`, and: - it is at least **2.5+ times faster**, due to better algorithm; - can receive `include` and/or `exclude` patterns; - expects received patterns to be RegExp, therefore this package is not api-compatible with `exhaustivestruct`. Also: deprecate `exhaustivestruct` linter
This linter can be called a successor of exhaustivestruct, and:
include
and/orexclude
patterns;exhaustivestruct
.Also: deprecate
exhaustivestruct
linter