Skip to content

Commit

Permalink
Add in scc ignore file support
Browse files Browse the repository at this point in the history
  • Loading branch information
boyter committed Sep 30, 2024
1 parent bd9899f commit ffe7ffc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions processor/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,10 @@ func Process() {
fileWalker.ExcludeDirectory = PathDenyList
fileWalker.SetConcurrency(DirectoryWalkerJobWorkers)

if !SccIgnore {
fileWalker.CustomIgnore = []string{".sccignore"}
}

for _, exclude := range Exclude {
regexpResult, err := regexp.Compile(exclude)
if err == nil {
Expand Down

0 comments on commit ffe7ffc

Please sign in to comment.