-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
feat: replace gomnd by mnd #4572
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
Conversation
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, as long as the name actually is just mnd. I see it's set to mnd in the code but most of the references refer to it as go-mnd and so does the gopher image in the repo.
@tommy-muehle Can you confirm that the name of the linter should be just mnd or would you rather set the name to gomnd on the analyzer? I guess mnd makes more sense since it's the name of the binary as well but might as well ask to clarify.
So you are saying that only my first commit (coming from the previous PR) was enough, it's because you need more PRs to review? 😸 |
I'm sorry if this yielded extra work for you. I was mostly asking a question and didn't have the time to reply to your comments in the other PR before you created this one. I thought, and I think you did as well based on this PR, that the name is actually If the linter would be named I approved this PR because maybe you have different context or feel different about this so feel free to merge. I did not try to get more PRs to review. |
I was just kidding 😸 I was torn between the name change and the deprecation, so I used your comment as justification. |
|
More seriously, the readme is a mix of We will wait for the feedback of the author but |
Yeah 100% agree! I pinged to see if we got some response within a day or two max but I wouldn't block too long on it. |
- closes: apache#6125 Changes: - drop `gomnd` as it has been replaced by `mnd` (see golangci/golangci-lint#4572) and then removed (see golangci/golangci-lint#5110) - addresses warning: `WARN [lintersdb] The linter "gomnd" is deprecated (step 2) and deactivated. It should be removed from the list of disabled linters. https://golangci-lint.run/product/roadmap/#linter-deprecation-cycle` - disable `tenv` as the same functionality is provided by `usetesting` and we enable it with `enable-all: true` - addresses warning: `WARN The linter 'tenv' is deprecated (since v1.64.0) due to: Duplicate feature another linter. Replaced by usetesting.`
- closes: #6125 Changes: - drop `gomnd` as it has been replaced by `mnd` (see golangci/golangci-lint#4572) and then removed (see golangci/golangci-lint#5110) - addresses warning: `WARN [lintersdb] The linter "gomnd" is deprecated (step 2) and deactivated. It should be removed from the list of disabled linters. https://golangci-lint.run/product/roadmap/#linter-deprecation-cycle` - disable `tenv` as the same functionality is provided by `usetesting` and we enable it with `enable-all: true` - addresses warning: `WARN The linter 'tenv' is deprecated (since v1.64.0) due to: Duplicate feature another linter. Replaced by usetesting.`
Rename gomnd to mnd:
This PR also fixes the problem of consistency between the analyzer name and linter name like #4567.
Before
With the PR