Fix: Flip logic so detect.excluded.directories.defaults.disabled=true does not exclude default directories.
@@ -314,7 +314,7 @@ public class DetectConfigurationFactory {
private List<String> collectDirectoryExclusions() {
List<String> directoryExclusionPatterns = new ArrayList(getValue(DetectProperties.DETECT_EXCLUDED_DIRECTORIES));
- if (getValue(DetectProperties.DETECT_EXCLUDED_DIRECTORIES_DEFAULTS_DISABLED)) {
+ if (!getValue(DetectProperties.DETECT_EXCLUDED_DIRECTORIES_DEFAULTS_DISABLED)) {
List<String> defaultExcluded = Arrays.stream(DefaultDetectorExcludedDirectories.values())
.map(DefaultDetectorExcludedDirectories::getDirectoryName)
.collect(Collectors.toList());
