Skip to content

Commit

Permalink
Also skip exclude paths during scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
gwillem committed Mar 31, 2023
1 parent 9e8e47d commit 4b712f9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion corediff.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,11 @@ func checkPath(root string, db hashDB, args *baseArgs) *walkStats {

// Only do path checking for non-root elts
if path != root && !args.IgnorePaths {
if _, ok := db[pathHash(relPath)]; !ok {

_, foundInDb := db[pathHash(relPath)]
shouldExclude := pathIsExcluded(relPath)

if !foundInDb || shouldExclude {
stats.filesCustomCode++
logVerbose(grey(" ? ", relPath))
return nil
Expand Down

0 comments on commit 4b712f9

Please sign in to comment.