-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Metric collection for DotNet ecosystem and languages #11096
base: main
Are you sure you want to change the base?
Conversation
f68ba6d
to
d1fb58e
Compare
20c5cbf
to
529ddd2
Compare
|
||
sig { returns(Ecosystem::VersionManager) } | ||
def package_manager | ||
NugetPackageManager.new(nuget_version) |
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.
nuget_version could be nil so you probably need T.must(nuget_version)
end | ||
|
||
sig { returns(T::Array[Dependabot::Dependency]) } | ||
def content_json |
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.
Earlier, I run into issues when I changed the public interface of this class. Try moving this into the private section below.
# following block | ||
version = Dependabot::SharedHelpers.run_shell_command("dotnet nuget --version").split("Command Line").last&.strip | ||
|
||
it "does not raise error" 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.
To me, this looks like testing https://github.com/dependabot/dependabot-core/pull/11096/files#diff-81366b995ef0ba3d519c0c6bc42b165a1ed2bd2059cc6f51b8fecaa4d80b881fR138 and I feel that's where this test should move to. This class does not run the shell command.
90deca9
to
53524bf
Compare
53524bf
to
1727bc7
Compare
What are you trying to accomplish?
Anything you want to highlight for special attention from reviewers?
How will you know you've accomplished your goal?
Checklist