Skip to content

Commit

Permalink
fix: typo in assessment results
Browse files Browse the repository at this point in the history
  • Loading branch information
bzarboni1 committed May 30, 2024
1 parent 07ee84b commit dd14769
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions cmd/check/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ var CheckCmd = &cobra.Command{
gs := github.NewGithubService(authToken)
org, err := gs.GetOrganization(slug)
if err == nil {
reports = append(reports, org.Check([]types.CheckType{types.GoCGaurdrails}))
reports = append(reports, org.Check([]types.CheckType{types.GoCGuardrails}))
}

repos, err := gs.GetRepositories(slug, nil)
if err == nil {
for _, r := range repos {
reports = append(reports, r.Check([]types.CheckType{types.GoCGaurdrails}))
reports = append(reports, r.Check([]types.CheckType{types.GoCGuardrails}))
}
}

Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/types/checks.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type CheckError struct {
type CheckType string

const (
GoCGaurdrails = "GoCGaurdrails"
GoCGuardrails = "GoCGuardrails"
)

type CheckReport struct {
Expand Down
4 changes: 2 additions & 2 deletions internal/pkg/types/github/organization.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func (o *Organization) Check(checkTypes []types.CheckType) types.CheckReport {
}
for _, t := range checkTypes {
switch t {
case types.GoCGaurdrails:
case types.GoCGuardrails:
r, err := o.GoCGaurdrailsCompliant()
if err != nil {
report.Errors = append(report.Errors, *err)
Expand Down Expand Up @@ -163,7 +163,7 @@ func (o *Organization) GoCGaurdrailsCompliant() (types.CheckResult, *types.Check
if allErrors != nil {
return types.Failed, &types.CheckError{
Err: allErrors,
Check: types.GoCGaurdrails,
Check: types.GoCGuardrails,
Violations: violations,
}
}
Expand Down
4 changes: 2 additions & 2 deletions internal/pkg/types/github/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (r *Repository) Check(checkTypes []types.CheckType) types.CheckReport {
}
for _, t := range checkTypes {
switch t {
case types.GoCGaurdrails:
case types.GoCGuardrails:
r, err := r.GoCGaurdrailsCompliant()
if err != nil {
report.Errors = append(report.Errors, *err)
Expand Down Expand Up @@ -109,7 +109,7 @@ func (r *Repository) GoCGaurdrailsCompliant() (types.CheckResult, *types.CheckEr
if allErrors != nil {
return types.Failed, &types.CheckError{
Err: allErrors,
Check: types.GoCGaurdrails,
Check: types.GoCGuardrails,
Violations: violations,
}
}
Expand Down

0 comments on commit dd14769

Please sign in to comment.