-
Notifications
You must be signed in to change notification settings - Fork 20
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
Enable previously disabled linters like nakedret, revive unparam, gosec from golang-cli.yml #647
Conversation
de25329
to
f451f21
Compare
f451f21
to
a62ee4b
Compare
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. I have one clarification question regarding the unparam
false positives
@@ -66,6 +66,7 @@ func convertVersionToStringArray(arrOsArchInfo []osArch) []string { | |||
return oa | |||
} | |||
|
|||
//nolint:unparam |
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.
Is it a false positive? I see all the params are being used.
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.
I have disabled because of the error cmd/plugin/builder/command/publish/helper_test.go:69:48:
createDummyArtifactDir-
pluginNamealways receives
"fake-plugin-foo"(unparam)
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. Thanks for adding this and addressing some of the errors.
I'm removing myself as a reviewer due to time constraints. |
a62ee4b
to
30f3d39
Compare
…ec from golang-cli.yml (vmware-tanzu#647) * Fix nakedret, revive lint issues * Enable unparam linter * Enable gosec g601 and g602 linters
…ec from golang-cli.yml (#647) * Fix nakedret, revive lint issues * Enable unparam linter * Enable gosec g601 and g602 linters
What this PR does / why we need it
Which issue(s) this PR fixes
Fixes #
Describe testing done for PR
make lint
- no issuesRelease note
Additional information
Special notes for your reviewer