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

chore: enable unnecessary-stmt rule from revive #19155

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mmorel-35
Copy link
Contributor

Description

unnecessary-stmt: This rule suggests to remove redundant statements like a break at the end of a case block, for improving the code's readability.

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: mmorel-35
Once this PR has been reviewed and has the lgtm label, please assign jmhbnz for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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

Copy link

codecov bot commented Jan 9, 2025

Codecov Report

Attention: Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 68.73%. Comparing base (88b3938) to head (c41fdfd).
Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
server/etcdmain/etcd.go 0.00% 1 Missing ⚠️
Additional details and impacted files
Files with missing lines Coverage Δ
server/storage/wal/repair.go 55.35% <100.00%> (-0.79%) ⬇️
server/etcdmain/etcd.go 0.00% <0.00%> (ø)

... and 27 files with indirect coverage changes

@@            Coverage Diff             @@
##             main   #19155      +/-   ##
==========================================
- Coverage   68.87%   68.73%   -0.15%     
==========================================
  Files         420      420              
  Lines       35642    35639       -3     
==========================================
- Hits        24549    24496      -53     
- Misses       9675     9716      +41     
- Partials     1418     1427       +9     

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 88b3938...c41fdfd. Read the comment docs.

@mmorel-35 mmorel-35 force-pushed the revive/unnecessary-stmt branch from 57aec15 to 8202497 Compare January 15, 2025 19:44
@mmorel-35 mmorel-35 force-pushed the revive/unnecessary-stmt branch from 8202497 to c41fdfd Compare January 19, 2025 10:01
@mmorel-35
Copy link
Contributor Author

/retest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants