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

feat: new gomodcheck linter #308

Merged
merged 1 commit into from
Sep 2, 2024
Merged

Conversation

wwcchh0123
Copy link
Contributor

Copy link

netlify bot commented Sep 2, 2024

Deploy Preview for reviewbot-x canceled.

Name Link
🔨 Latest commit 6dadabb
🔍 Latest deploy log https://app.netlify.com/sites/reviewbot-x/deploys/66d566474c5b3f00089cbcaf

Copy link

codecov bot commented Sep 2, 2024

Codecov Report

Attention: Patch coverage is 0% with 42 lines in your changes missing coverage. Please review.

Project coverage is 36.54%. Comparing base (f4a0b59) to head (6dadabb).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
internal/linters/go/gomodcheck/gomodcheck.go 0.00% 42 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #308      +/-   ##
==========================================
- Coverage   37.37%   36.54%   -0.84%     
==========================================
  Files          23       24       +1     
  Lines        1838     1880      +42     
==========================================
  Hits          687      687              
- Misses       1069     1111      +42     
  Partials       82       82              

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

func goModCheckOutput(log *xlog.Logger, a linters.Agent) (map[string][]linters.LinterOutput, error) {
output := make(map[string][]linters.LinterOutput)
for _, file := range a.PullRequestChangedFiles {
if filepath.Ext(file.GetFilename()) != ".mod" {
Copy link
Contributor

Choose a reason for hiding this comment

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

直接用 file.GetFilename() != "go.mod" 判断?

@CarlJi CarlJi merged commit c7ca1d7 into qiniu:master Sep 2, 2024
7 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants