Skip to content

Enable golangci-lint gci, dupword and tagalign linters - #6952

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

cert-manager-prow[bot] merged 3 commits into
cert-manager:masterfrom
inteon:fix_linters

Conversation

@inteon

@inteon inteon commented Apr 24, 2024

Copy link
Copy Markdown
Member

Fixes all issues these linters found and remove them from the ignore section of our golangci-lint config.

Kind

/kind cleanup

Release Note

NONE

@cert-manager-prow cert-manager-prow Bot added release-note-none Denotes a PR that doesn't merit a release note. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. 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/acme/http01 Indicates a PR modifies ACME HTTP01 provider code area/api Indicates a PR directly modifies the 'pkg/apis' directory area/monitoring Indicates a PR or issue relates to monitoring area/testing Issues relating to testing area/vault Indicates a PR directly modifies the Vault Issuer code size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Apr 24, 2024
@cert-manager-prow cert-manager-prow Bot added the area/deploy Indicates a PR modifies deployment configuration label Apr 24, 2024
@inteon

inteon commented Apr 24, 2024

Copy link
Copy Markdown
Member Author

/test pull-cert-manager-master-make-verify
Looks like a flake:

W0424 16:41:46.572703   14322 report.go:128] Error discovering license URL: getting file URL in library gopkg.in/inf.v0: source.ModuleInfo(ctx, "gopkg.in/inf.v0", "v0.9.1"): moduleInfoDynamic(ctx, client, "gopkg.in/inf.v0", "v0.9.1"): fetchMeta(ctx, client, "gopkg.in/inf.v0"): doURL(ctx, client, "GET", "http://gopkg.in/inf.v0?go-get=1"): Get "http://gopkg.in/inf.v0?go-get=1": context deadline exceeded
W0424 16:41:46.572783   14322 report.go:128] Error discovering license URL: getting file URL in library gopkg.in/yaml.v2: source.ModuleInfo(ctx, "gopkg.in/yaml.v2", "v2.4.0"): moduleInfoDynamic(ctx, client, "gopkg.in/yaml.v2", "v2.4.0"): fetchMeta(ctx, client, "gopkg.in/yaml.v2"): doURL(ctx, client, "GET", "http://gopkg.in/yaml.v2?go-get=1"): Get "http://gopkg.in/yaml.v2?go-get=1": context deadline exceeded
W0424 16:41:46.572800   14322 report.go:128] Error discovering license URL: getting file URL in library gopkg.in/ini.v1: source.ModuleInfo(ctx, "gopkg.in/ini.v1", "v1.67.0"): moduleInfoDynamic(ctx, client, "gopkg.in/ini.v1", "v1.67.0"): fetchMeta(ctx, client, "gopkg.in/ini.v1"): doURL(ctx, client, "GET", "http://gopkg.in/ini.v1?go-get=1"): Get "http://gopkg.in/ini.v1?go-get=1": dial tcp 185.125.188.128:80: i/o timeout

@inteon

inteon commented Apr 25, 2024

Copy link
Copy Markdown
Member Author

/approve

@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 25, 2024
inteon added 3 commits April 29, 2024 13: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

/lgtm

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

inteon commented Apr 29, 2024

Copy link
Copy Markdown
Member Author

/approve

@cert-manager-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: inteon

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

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/http01 Indicates a PR modifies ACME HTTP01 provider code area/acme Indicates a PR directly modifies the ACME Issuer code area/api Indicates a PR directly modifies the 'pkg/apis' directory area/deploy Indicates a PR modifies deployment configuration area/monitoring Indicates a PR or issue relates to monitoring area/testing Issues relating to testing area/vault Indicates a PR directly modifies the Vault Issuer code 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/XL Denotes a PR that changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants