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

Fix issue with file ordering #760

Merged
merged 2 commits into from
Feb 15, 2024
Merged

Conversation

LandonTClipp
Copy link
Contributor

A bug exists in the logic that determines if go.mod exists: if a *.go file is returned by the filesystem before go.mod, we will not skip the subtree as intended. To fix this, we always stat for go.mod if we find a *.go file, as a final check before considering the path to be a subpackage.

A bug exists in the logic that determines if `go.mod` exists: if a `*.go` file is returned by the filesystem before `go.mod`, we will not skip the
subtree as intended. To fix this, we always stat for `go.mod` if we find a `*.go` file, as a final check before considering the path to be
a subpackage.
I don't really like coverage tests because it's kind of faulty. Lots of e2e tests aren't registered
in the coverage file, and thus codecov erroneously says we have less coverage than we really do.
I'll make this more permissive so it'll not fail the PR checks, but still have it as a PR check
just as a reference tool.
Copy link

codecov bot commented Feb 15, 2024

Codecov Report

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

Comparison is base (d4e7f57) 42.42613% compared to head (d39a2a2) 42.45067%.

Files Patch % Lines
pkg/config/config.go 60.00000% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@                 Coverage Diff                 @@
##              master        #760         +/-   ##
===================================================
+ Coverage   42.42613%   42.45067%   +0.02454%     
===================================================
  Files             61          61                 
  Lines           4806        4815          +9     
===================================================
+ Hits            2039        2044          +5     
- Misses          2588        2591          +3     
- Partials         179         180          +1     

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

@LandonTClipp LandonTClipp merged commit 3b25f39 into vektra:master Feb 15, 2024
6 checks passed
@LandonTClipp LandonTClipp deleted the fix_ordering branch February 15, 2024 21:28
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.

None yet

1 participant