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

chores(deps): Add support depguard rules in golangci-lint #1965

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

dongjiang1989
Copy link

Ⅰ. Describe what this PR does

Go 1.16 deprecated several io/ioutil functions.

ioutil.ReadFile -> os.ReadFile
ioutil.ReadAll -> io.ReadAll
ioutil.ReadDir -> os.ReadDir

ref: https://pkg.go.dev/io/ioutil

Add support depguard rules in golangci-lint

Ⅱ. Does this pull request fix one issue?

NONE

Ⅲ. Describe how to verify it

Ⅳ. Special notes for reviews

V. Checklist

  • I have written necessary docs and comments
  • I have added necessary unit tests and integration tests
  • All checks passed in make test

Signed-off-by: dongjiang1989 <dongjiang1989@126.com>
Copy link

codecov bot commented Mar 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.52%. Comparing base (2dc8735) to head (035e128).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1965      +/-   ##
==========================================
+ Coverage   67.50%   67.52%   +0.01%     
==========================================
  Files         421      421              
  Lines       47100    47100              
==========================================
+ Hits        31795    31804       +9     
+ Misses      12990    12984       -6     
+ Partials     2315     2312       -3     
Flag Coverage Δ
unittests 67.52% <ø> (+0.01%) ⬆️

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

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

@dongjiang1989
Copy link
Author

@eahydra PTAL

Copy link
Member

@jasonliu747 jasonliu747 left a comment

Choose a reason for hiding this comment

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

/lgtm

@dongjiang1989
Copy link
Author

/assign @hormes

@koordinator-bot
Copy link

New changes are detected. LGTM label has been removed.

@koordinator-bot koordinator-bot bot removed the lgtm label Mar 25, 2024
@koordinator-bot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: jasonliu747
To complete the pull request process, please ask for approval from hormes after the PR has been reviewed.

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

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

Successfully merging this pull request may close these issues.

None yet

3 participants