Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@leongross
Copy link
Member

@leongross leongross commented Sep 27, 2024

  • Add the unused linter to the golangci-lint runner
  • Remove currently unused code

This PR covers most of the codebase (see the new exclude directories). There are some commands where I would like to get the authors' review (if possible) to minimize the code size further.

@codecov
Copy link

codecov bot commented Sep 27, 2024

Codecov Report

Attention: Patch coverage is 43.47826% with 13 lines in your changes missing coverage. Please review.

Project coverage is 58.30%. Comparing base (7a89594) to head (e37799d).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3119      +/-   ##
==========================================
- Coverage   60.55%   58.30%   -2.25%     
==========================================
  Files         598      598              
  Lines       39904    49917   +10013     
==========================================
+ Hits        24162    29104    +4942     
- Misses      15742    20813    +5071     
Flag Coverage Δ
.-amd64 88.70% <ø> (-1.99%) ⬇️
cmds/...-amd64 51.35% <0.00%> (-1.77%) ⬇️
integration/generic-tests/...-amd64 19.73% <100.00%> (-0.09%) ⬇️
integration/generic-tests/...-arm 11.63% <ø> (-0.01%) ⬇️
integration/generic-tests/...-arm64 16.36% <ø> (-0.03%) ⬇️
integration/gotests/...-amd64 61.21% <69.23%> (-1.98%) ⬇️
integration/gotests/...-arm 62.11% <75.00%> (-2.13%) ⬇️
integration/gotests/...-arm64 62.28% <75.00%> (-2.08%) ⬇️
pkg/...-amd64 57.57% <42.85%> (-2.71%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
everything 63.21% <45.45%> (-2.32%) ⬇️
cmds/exp 31.52% <0.00%> (-1.71%) ⬇️

@leongross leongross marked this pull request as ready for review September 27, 2024 15:55
rminnich
rminnich previously approved these changes Sep 27, 2024
Copy link
Member

@rminnich rminnich left a comment

Choose a reason for hiding this comment

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

overall, this is pretty great. Please see my comments, you are welcome to ignore or respond to them.

@rminnich rminnich added the Awaiting author Waiting for new changes or feedback for author. label Sep 28, 2024
@leongross leongross requested a review from rminnich October 2, 2024 17:36
@leongross leongross requested a review from binjip978 October 2, 2024 17:39
@leongross leongross force-pushed the ci/unused branch 2 times, most recently from f8907c2 to 5402bb6 Compare October 4, 2024 19:26
@leongross
Copy link
Member Author

@binjip978

@binjip978
Copy link
Contributor

@binjip978

See my comment in unresolved conversation about usage.

@leongross leongross added the Code Health Code Quality & Health label Oct 11, 2024
@leongross
Copy link
Member Author

@binjip978

@leongross leongross requested review from MDr164 and jenstopp October 15, 2024 16:04
@leongross leongross enabled auto-merge (rebase) October 15, 2024 17:34
@leongross leongross disabled auto-merge October 15, 2024 18:07
Copy link
Member

@rminnich rminnich left a comment

Choose a reason for hiding this comment

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

Some of this looks really good. If you can break this up, and remove all the files from it that. have nolint: tags, such that we can fix them, I would be more comfortable.

Another example: testBaseLimtType should be fixed, not have a nolint: tag.


// TODO: get author review
//
//nolint:unused
Copy link
Member

Choose a reason for hiding this comment

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

just remove the parameter, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

The problem is that the function is not called, and I wanted the authors to review that to check why this is the case. @RiSKeD authored this so he might want to comment on that before we remove it.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, this is fine for now. I will do a PR with a fix using it. Thanks for the headsup

Copy link
Contributor

Choose a reason for hiding this comment

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

The function is now being used, so you can remove the linter tag

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

Labels

Awaiting author Waiting for new changes or feedback for author. Code Health Code Quality & Health

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants