Skip to content

Fix linters: unparam, tenv, loggercheck, forbidigo, predeclared, usestdlibvars, asasalint, goprintffuncname, ineffassign, nosprintfhostport and exportloopref - #6973

Merged
cert-manager-prow[bot] merged 11 commits into
cert-manager:masterfrom
inteon:fix_linters
Apr 30, 2024

Conversation

@inteon

@inteon inteon commented Apr 29, 2024 •

Copy link
Copy Markdown
Member

Similar to #6952 and #6972.
Fixes all found issues for the following linters and enables them as a restriction: unparam, tenv, loggercheck, forbidigo, predeclared, usestdlibvars, asasalint, goprintffuncname, ineffassign, nosprintfhostport and exportloopref.

Note for reviewer: each commit fixes one linter.

Kind

/kind cleanup

Release Note

NONE

inteon added 6 commits April 29, 2024 16:48
Signed-off-by: Tim Ramlot <[email protected]>
Signed-off-by: Tim Ramlot <[email protected]>
Signed-off-by: Tim Ramlot <[email protected]>
Signed-off-by: Tim Ramlot <[email protected]>
Signed-off-by: Tim Ramlot <[email protected]>
@cert-manager-prow cert-manager-prow Bot added kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. release-note-none Denotes a PR that doesn't merit a release note. dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. area/acme Indicates a PR directly modifies the ACME Issuer code area/acme/dns01 Indicates a PR modifies ACME DNS01 provider code area/monitoring Indicates a PR or issue relates to monitoring area/testing Issues relating to testing size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Apr 29, 2024
@inteon
inteon force-pushed the fix_linters branch 2 times, most recently from afd1070 to 3a5423b Compare April 30, 2024 07:16
inteon added 2 commits April 30, 2024 10:01
Signed-off-by: Tim Ramlot <[email protected]>
inteon added 3 commits April 30, 2024 10:47
Signed-off-by: Tim Ramlot <[email protected]>
Signed-off-by: Tim Ramlot <[email protected]>
Signed-off-by: Tim Ramlot <[email protected]>
@ThatsMrTalbot

Copy link
Copy Markdown
Contributor

Lots of renaming, function signature changes - I have skimmed all the files and cant see any code smells, also all tests still passing.

Thanks for putting in the time getting all the linters set up, hopefully a bit of pain now to make development easier in the future.

/lgtm
/approve

@cert-manager-prow cert-manager-prow Bot added the lgtm Indicates that a PR is ready to be merged. label Apr 30, 2024
@cert-manager-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ThatsMrTalbot

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@cert-manager-prow cert-manager-prow Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 30, 2024
@cert-manager-prow
cert-manager-prow Bot merged commit d7182f4 into cert-manager:master Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. area/acme/dns01 Indicates a PR modifies ACME DNS01 provider code area/acme Indicates a PR directly modifies the ACME Issuer code area/monitoring Indicates a PR or issue relates to monitoring area/testing Issues relating to testing dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants