Skip to content
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

✨ Upgrade golangci-lint from v1.59 to v1.61 and resolve new lint issues #4236

Merged

Conversation

camilamacedo86
Copy link
Member

@camilamacedo86 camilamacedo86 commented Oct 29, 2024

Upgrade golangci-lint from v1.59 to v1.61 and resolve new lint issues

  • Upgraded golangci-lint from v1.59 to v1.61.
  • Fixed issues flagged by new lint rules in v1.61:
    • Resolved comment-spacings errors in api.go by adding spaces after // delimiters.
    • Addressed govet error by formatting non-constant strings in fmt.Errorf.
    • Updated staticcheck issues in resource.go by replacing fmt.Errorf with errors.New for static error messages.
    • Deprecated the exportloopref linter, replaced by copyloopvar for Go 1.22+.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Oct 29, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: camilamacedo86

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

The pull request process is described here

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

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 29, 2024
@camilamacedo86 camilamacedo86 force-pushed the upgrade-lint-v1-61 branch 2 times, most recently from be2e664 to 92d2ae8 Compare October 29, 2024 11:32
@camilamacedo86 camilamacedo86 changed the title ✨ Upgrade golangci-lint from v1.59 to v1.61 ✨ Upgrade golangci-lint from v1.59 to v1.61 and resolve new lint issues Oct 29, 2024
@camilamacedo86
Copy link
Member Author

I will not make nobody waste time on this review
It is just a small patch bump
passing in the CI is more than enough

@camilamacedo86 camilamacedo86 added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 29, 2024
- Upgraded golangci-lint from v1.59 to v1.61.
- Fixed issues flagged by new lint rules in v1.61:
  - Resolved `comment-spacings` errors in api.go by adding spaces after `//` delimiters.
  - Addressed `govet` error by formatting non-constant strings in `fmt.Errorf`.
  - Updated `staticcheck` issues in resource.go by replacing `fmt.Errorf` with `errors.New` for static error messages.
  - Deprecated the `exportloopref` linter, replaced by `copyloopvar` for Go 1.22+.
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 29, 2024
@k8s-ci-robot
Copy link
Contributor

New changes are detected. LGTM label has been removed.

@camilamacedo86 camilamacedo86 added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 29, 2024
@k8s-ci-robot k8s-ci-robot merged commit a86d73a into kubernetes-sigs:master Oct 29, 2024
24 checks passed
@camilamacedo86 camilamacedo86 deleted the upgrade-lint-v1-61 branch October 29, 2024 12:39
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants