Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed up compilation by adding security scan exclusion directories #1828

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
handle error
  • Loading branch information
tsingbx committed Mar 28, 2024
commit d2fd64b5e6e64992bf7c7aab32ecf8dec34bf5aa
11 changes: 8 additions & 3 deletions cmd/defender/exclude.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,20 @@ func main() {
}
excludeDirs = append(excludeDirs, excludeDir)
}
defender.ExcludeWithDirs(excludeDirs)
err := defender.ExcludeWithDirs(excludeDirs)
if err != nil {
fmt.Println(err)
}
} else {
if len(flag.Args()) > 0 {
flag.Usage()
flag.PrintDefaults()
} else {
fmt.Println("Start processing, please wait for a moment...")
defender.Exclude()
err := defender.Exclude()
if err != nil {
fmt.Println(err)
}
}
}

}
Loading