@@ -352,11 +352,14 @@ func GetExcludePatterns(module jfrogappsconfig.Module, scanner *jfrogappsconfig.
352352 // Adding exclusions from jfrog-apps-config IF no exclusions provided from other source (flags, env vars, config profile)
353353 excludePatterns := module .ExcludePatterns
354354 if scanner != nil {
355+ log .Debug ("Using scanner exclude patterns:" , strings .Join (scanner .ExcludePatterns , "," ))
355356 excludePatterns = append (excludePatterns , scanner .ExcludePatterns ... )
356357 }
357358 if len (excludePatterns ) == 0 {
359+ log .Debug ("No exclude patterns provided, using default exclude patterns" , strings .Join (utils .DefaultJasExcludePatterns , "," ))
358360 return utils .DefaultJasExcludePatterns
359361 }
362+ log .Debug ("Using exclude patterns:" , strings .Join (excludePatterns , "," ))
360363 return excludePatterns
361364}
362365
@@ -366,6 +369,11 @@ func GetExcludePatterns(module jfrogappsconfig.Module, scanner *jfrogappsconfig.
366369func filterUniqueAndConvertToFilesExcludePatterns (excludePatterns []string ) []string {
367370 uniqueExcludePatterns := datastructures .MakeSet [string ]()
368371 for _ , excludePattern := range excludePatterns {
372+
373+ // Add ignore for the pattern as-is, not only the pattern as a directory
374+ uniqueExcludePatterns .Add (excludePattern )
375+
376+ // Avoid adding the pattern as a directory twice
369377 if ! strings .HasPrefix (excludePattern , "**/" ) {
370378 excludePattern = "**/" + excludePattern
371379 }
0 commit comments