Skip to content

Commit

Permalink
Fix bug Checkmarx#7215
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Jul 24, 2024
1 parent f707b51 commit 412cedd
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkg/engine/provider/filesystem.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,6 @@ func (s *FileSystemSourceProvider) checkConditions(info os.FileInfo, extensions
// exclude terraform cache folders
if queryRegexExcludeTerraCache.MatchString(path) {
log.Info().Msgf("Directory ignored: %s", path)

err := s.AddExcluded([]string{info.Name()})
if err != nil {
return true, err
}
return true, filepath.SkipDir
}
if f, ok := s.excludes[info.Name()]; ok && containsFile(f, info) {
Expand Down

0 comments on commit 412cedd

Please sign in to comment.