We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f5b44b0 + 6919d97 commit c0db486Copy full SHA for c0db486
cmd/gosec/main.go
@@ -91,6 +91,8 @@ var (
91
// go build tags
92
flagBuildTags = flag.String("tags", "", "Comma separated list of build tags")
93
94
+ flagScanVendor = flag.Bool("vendor", false, "Scan the vendor folder")
95
+
96
logger *log.Logger
97
)
98
@@ -278,8 +280,10 @@ func main() {
278
280
for _, pkg := range gotool.ImportPaths(cleanPaths(flag.Args())) {
279
281
282
// Skip vendor directory
- if vendor.MatchString(pkg) {
- continue
283
+ if !*flagScanVendor {
284
+ if vendor.MatchString(pkg) {
285
+ continue
286
+ }
287
}
288
packages = append(packages, resolvePackage(pkg, gopaths))
289
0 commit comments