Skip to content

Commit f8c2820

Browse files
committed
C#: Rename GetNugetFeeds to GetNugetFeedsFromConfig.
1 parent dadf67d commit f8c2820

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/DotNet.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public bool Exec(List<string> execArgs)
137137

138138
private static readonly IReadOnlyList<string> nugetListSourceCommandArgs = ["nuget", "list", "source", "--format", "Short"];
139139

140-
public IList<string> GetNugetFeeds(string nugetConfig)
140+
public IList<string> GetNugetFeedsFromConfig(string nugetConfig)
141141
{
142142
logger.LogInfo($"Getting NuGet feeds from '{nugetConfig}'...");
143143
return GetResultList([.. nugetListSourceCommandArgs, "--configfile", nugetConfig]);

‎csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/FeedManager.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ private IEnumerable<string> GetFeedsFromFolder(string folderPath) =>
181181
GetFeeds(() => dotnet.GetNugetFeedsFromFolder(folderPath));
182182

183183
private IEnumerable<string> GetFeedsFromNugetConfig(string nugetConfigPath) =>
184-
GetFeeds(() => dotnet.GetNugetFeeds(nugetConfigPath));
184+
GetFeeds(() => dotnet.GetNugetFeedsFromConfig(nugetConfigPath));
185185

186186
/// <summary>
187187
/// Constructs the NuGet sources argument for the restore command based on the given feeds.

‎csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/IDotNet.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public interface IDotNet
1313
IList<string> GetListedRuntimes();
1414
IList<string> GetListedSdks();
1515
bool Exec(List<string> execArgs);
16-
IList<string> GetNugetFeeds(string nugetConfig);
16+
IList<string> GetNugetFeedsFromConfig(string nugetConfig);
1717
IList<string> GetNugetFeedsFromFolder(string folderPath);
1818
}
1919

‎csharp/extractor/Semmle.Extraction.Tests/DotNet.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ public void TestNugetFeeds()
285285
var dotnet = MakeDotnet(dotnetCliInvoker);
286286

287287
// Execute
288-
dotnet.GetNugetFeeds("abc");
288+
dotnet.GetNugetFeedsFromConfig("abc");
289289

290290
// Verify
291291
var lastArgs = dotnetCliInvoker.GetLastArgs();

‎csharp/extractor/Semmle.Extraction.Tests/DotNetStub.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public DotNetStub(IList<string> runtimes, IList<string> sdks, IList<string> nuge
3030

3131
public bool Exec(List<string> execArgs) => true;
3232

33-
public IList<string> GetNugetFeeds(string nugetConfig) => nugetFeedsFromConfig;
33+
public IList<string> GetNugetFeedsFromConfig(string nugetConfig) => nugetFeedsFromConfig;
3434

3535
public IList<string> GetNugetFeedsFromFolder(string folderPath) => nugetFeedsFromFolder;
3636
}

0 commit comments

Comments
 (0)