Skip to content

Commit

Permalink
Fixed excluded directories with pattern (#4980)
Browse files Browse the repository at this point in the history
Signed-off-by: Vijayan T <[email protected]>
  • Loading branch information
vijayanjay authored Jul 5, 2024
1 parent 64aabd8 commit 0f427c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/detectExecuteScan.go
Original file line number Diff line number Diff line change
Expand Up @@ -1124,7 +1124,7 @@ func logConfigInVerboseMode(config detectExecuteScanOptions) {
}

func handleExcludedDirectories(args *[]string, config *detectExecuteScanOptions) {
index := findItemInStringSlice(config.ScanProperties, "detect.excluded.directories")
index := findItemInStringSlice(config.ScanProperties, "--detect.excluded.directories=")
if index != -1 && !strings.Contains(config.ScanProperties[index], configPath) {
config.ScanProperties[index] += "," + configPath
} else {
Expand Down

0 comments on commit 0f427c3

Please sign in to comment.