Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;

Expand All @@ -24,7 +25,7 @@

@DetectableInfo(name = "NuGet Solution Native Inspector", language = "C#", forge = "NuGet.org", accuracy = DetectableAccuracyType.HIGH, requirementsMarkdown = "File: a solution file with a .sln extension.")
public class NugetSolutionDetectable extends Detectable {
private static final List<String> SUPPORTED_SOLUTION_PATTERNS = Collections.singletonList("*.sln");
private static final List<String> SUPPORTED_SOLUTION_PATTERNS = Collections.unmodifiableList(Arrays.asList("*.sln", "*.slnx"));

private final FileFinder fileFinder;
private final NugetInspectorResolver nugetInspectorResolver;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,20 @@ public void testApplicableForSolution() {
assertTrue(detectable.applicable().getPassed());
}

@Test
public void testApplicableForSolutionXML() {
NugetInspectorResolver nugetInspectorManager = null;
NugetInspectorExtractor nugetInspectorExtractor = null;
NugetInspectorOptions nugetInspectorOptions = null;

DetectableEnvironment environment = MockDetectableEnvironment.empty();
FileFinder fileFinder = MockFileFinder.withFileNamed("test.slnx");

NugetSolutionDetectable detectable = new NugetSolutionDetectable(environment, fileFinder, nugetInspectorManager, nugetInspectorExtractor, nugetInspectorOptions);

assertTrue(detectable.applicable().getPassed());
}

@Test
public void notApplicableForPodfile() {
NugetInspectorResolver nugetInspectorManager = null;
Expand Down
3 changes: 2 additions & 1 deletion documentation/src/main/markdown/currentreleasenotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
* (IDETECT‑4979) Updated the NuGet Inspector to prevent duplicate components from being reported which end up unversioned in the BOM.
* (IDETECT‑5058) Improved the Poetry detector to eliminate errors encountered while parsing pyproject.toml.
* (IDETECT‑5013) Fixed an issue in the signature scan fallback logic when SCA Scan Service (SCASS) is intentionally bypassed.
* NuGet Solution Native Inspector now supports .slnx files.

### Dependency Updates

* Upgraded and released Nuget Inspector version 2.6.0
* Update tomlj library to version 1.1.1.