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

✨ Fix spelling mistakes in comments #1219

Merged
merged 1 commit into from
Nov 4, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/checks/internal/validate/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ var (
allowedRisks = map[string]bool{"Critical": true, "High": true, "Medium": true, "Low": true}
allowedRepoTypes = map[string]bool{"GitHub": true, "local": true}
supportedAPIs = map[string][]string{
// InitRepo is supported for local reepos in general. However, in the context of checks,
// this is only used to look up remote data, e.g. in Fuzzinng check.
// InitRepo is supported for local repos in general. However, in the context of checks,
// this is only used to look up remote data, e.g. in Fuzzing check.
// So we only have "GitHub" supported.
"InitRepo": {"GitHub"},
"URI": {"GitHub", "local"},
Expand Down Expand Up @@ -90,7 +90,7 @@ func listCheckFiles() (map[string]string, error) {
return checkFiles, nil
}

// extract API names for RepoClient interface.
// Extract API names for RepoClient interface.
func extractAPINames() ([]string, error) {
fns := []string{}
interfaceRe := regexp.MustCompile(`type\s+RepoClient\s+interface\s+{\s*`)
Expand Down Expand Up @@ -131,7 +131,7 @@ func contains(l []string, elt string) bool {
return false
}

// extract supported interfaces frmo a check implementation file.
// Extract supported interfaces from a check implementation file.
func supportedInterfacesFromImplementation(checkName string, checkFiles map[string]string) ([]string, error) {
// Special case. No APIs are used,
// but we need the repo name for an online database lookup.
Expand Down