fix: Filtering blank project names when deciding detector name version suggestion.
@@ -36,9 +36,11 @@ public class DetectorEvaluationNameVersionDecider {
if (foundDetector.wasExtractionSuccessful() && foundDetector.getExtraction().isPresent()) {
Extraction extraction = foundDetector.getExtraction().get();
+ if (StringUtils.isNotBlank(extraction.getProjectName())) {
NameVersion nameVersion = new NameVersion(extraction.getProjectName(), extraction.getProjectVersion());
projectInfos.add(new DetectorProjectInfo(foundDetector.getRule().getDetectorType(), evaluation.getDepth(), nameVersion));
}
+ }
});
evaluation.getChildren()
