-
Notifications
You must be signed in to change notification settings - Fork 1
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
Ignore packages with commit instead of version #8
base: main
Are you sure you want to change the base?
Conversation
@CodiumAI-Agent /review |
PR Review
Code feedback:
✨ Review tool usage guide:Overview: The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on any PR.
See the review usage page for a comprehensive guide on using this tool. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @hbmartin - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟡 General issues: 1 issue found
- 🟢 Security: all looks good
- 🟡 Testing: 2 issues found
- 🟢 Complexity: all looks good
- 🟢 Docstrings: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.
spec/spm_version_updates_spec.rb
Outdated
@@ -182,6 +182,12 @@ module Danger | |||
expect(@dangerfile.status_report[:warnings]).to eq([]) | |||
end | |||
|
|||
it "Up to next major but null version" do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue (testing): Test case 'Up to next major but null version' lacks assertions for specific warnings.
Please add assertions to verify that the correct warnings are generated when the version is null. This will ensure that the new logic in warn_for_new_versions_range
and warn_for_new_versions
is correctly handling null or invalid versions.
spec/spm_version_updates_spec.rb
Outdated
@@ -182,6 +182,12 @@ module Danger | |||
expect(@dangerfile.status_report[:warnings]).to eq([]) | |||
end | |||
|
|||
it "Up to next major but null version" do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion (testing): Consider adding more test cases for error handling in version parsing.
Given the changes in error handling for version parsing in warn_for_new_versions_range
and warn_for_new_versions
, it would be beneficial to include tests that trigger and verify the handling of ArgumentError
.
it "Up to next major but null version" do | |
it "Up to next major but null version" do | |
expect { @my_plugin.check_for_updates("#{File.dirname(__FILE__)}/support/fixtures/PackageV1Commit.xcodeproj") }.to_not raise_error | |
expect(@dangerfile.status_report[:warnings]).to eq([]) | |
end | |
it "Does not crash or warn when resolved version is missing from xcodeproj" do | |
expect { @my_plugin.check_for_updates("#{File.dirname(__FILE__)}/support/fixtures/NoResolvedVersion.xcodeproj") }.to_not raise_error | |
end |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8 +/- ##
==========================================
- Coverage 95.07% 93.83% -1.24%
==========================================
Files 5 5
Lines 142 146 +4
==========================================
+ Hits 135 137 +2
- Misses 7 9 +2 ☔ View full report in Codecov by Sentry. |
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
No description provided.