mirror of
https://github.com/ossf/scorecard.git
synced 2024-09-19 13:07:17 +03:00
Added error for invalid checks
This commit is contained in:
parent
219404e0b7
commit
0967915691
@ -120,6 +120,8 @@ or ./scorecard --{npm,pypi,rubgems}=<package_name> [--checks=check1,...] [--show
|
||||
for _, checkToRun := range checksToRun {
|
||||
if checkFn, ok := checks.AllChecks[checkToRun]; ok {
|
||||
enabledChecks[checkToRun] = checkFn
|
||||
} else {
|
||||
log.Fatalf("Invalid check: %s", checkToRun)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user