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(blocked): bubble up errors when checking version constraints #43

Merged
merged 1 commit into from
Apr 3, 2024

Conversation

ryancurrah
Copy link
Owner

As reported in #39, if a version constraint is invalid gomodguard ignores it. This changes ensures errors with semver contraints are bubbled up as lint errors. Added test coverage for this.

@ryancurrah ryancurrah changed the title fix(blocked): bubble up errors when checking version contraints fix(blocked): bubble up errors when checking version constraints Apr 3, 2024
Copy link

codecov bot commented Apr 3, 2024

Codecov Report

Attention: Patch coverage is 85.71429% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 76.47%. Comparing base (94ec80a) to head (8bdb2ac).

Files Patch % Lines
blocked.go 50.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #43      +/-   ##
==========================================
+ Coverage   72.37%   76.47%   +4.09%     
==========================================
  Files           4        4              
  Lines         181      187       +6     
==========================================
+ Hits          131      143      +12     
+ Misses         50       44       -6     
Flag Coverage Δ
unittests 76.47% <85.71%> (+4.09%) ⬆️

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.

As reported in #39, if a version constraint is invalid gomodguard ignores it. This changes ensures errors with semver contraints are bubbled up as lint errors. Added test coverage for this.
@ryancurrah ryancurrah force-pushed the fix-version-constraint-errors-are-ignored branch from 8bdb2ac to 4e3abca Compare April 3, 2024 14:26
@ryancurrah ryancurrah merged commit aa7f420 into main Apr 3, 2024
3 checks passed
@ryancurrah ryancurrah deleted the fix-version-constraint-errors-are-ignored branch April 3, 2024 14:27
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.

1 participant