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

🌱 Remove nolint usages for errcheck, revive, prealloc, goconst, ineffassign #2409

Merged
merged 1 commit into from
Sep 29, 2023

Conversation

Ankitasw
Copy link
Member

@Ankitasw Ankitasw commented Sep 29, 2023

What this PR does / why we need it:
Remove usage of following:
//nolint:revive
//nolint:prealloc
//nolint:goconst

Didn't find any occurrence of //nolint:errcheck in codebase.
The comment for //nolint:ineffassign is alrady present in the occurrence.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Part of #2384

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Sep 29, 2023
@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Sep 29, 2023
Copy link
Contributor

@killianmuldoon killianmuldoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

One nit

pkg/identity/identity_test.go Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Sep 29, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (e77d02c) 60.74% compared to head (0269742) 60.73%.
Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2409      +/-   ##
==========================================
- Coverage   60.74%   60.73%   -0.02%     
==========================================
  Files         164      164              
  Lines        9475     9475              
==========================================
- Hits         5756     5755       -1     
  Misses       3302     3302              
- Partials      417      418       +1     
Files Coverage Δ
controllers/vmware/vspherecluster_reconciler.go 70.67% <100.00%> (-1.13%) ⬇️
pkg/services/network/dummy_provider.go 88.88% <80.00%> (ø)

... and 3 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

pkg/identity/identity_test.go Outdated Show resolved Hide resolved
pkg/identity/identity_test.go Outdated Show resolved Hide resolved
Copy link
Contributor

@killianmuldoon killianmuldoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

/hold
For other reviews - will unblock all of these on ~Monday
Thanks!

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 29, 2023
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 29, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: e15d81933663ff73f3f409b3e9714a1d81a0b0f4

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: killianmuldoon

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 the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 29, 2023
@chrischdi
Copy link
Member

/lgtm

/hold cancel

Thanks!

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 29, 2023
@k8s-ci-robot k8s-ci-robot merged commit 868fd6f into kubernetes-sigs:main Sep 29, 2023
11 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.9 milestone Sep 29, 2023
@Ankitasw Ankitasw deleted the remove-other-nolint branch September 29, 2023 14:40
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/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants