From 9765ea1007800c75ca2733f15ad9b792143a21fb Mon Sep 17 00:00:00 2001 From: Boming Zhang Date: Sat, 21 Sep 2024 20:59:11 -0400 Subject: [PATCH] fix: typo --- internal/parsers/cppcheck/score.go | 2 +- pkg/healthcheck/meta.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/parsers/cppcheck/score.go b/internal/parsers/cppcheck/score.go index d6028fb..dbdf81e 100644 --- a/internal/parsers/cppcheck/score.go +++ b/internal/parsers/cppcheck/score.go @@ -29,7 +29,7 @@ func severityFromString(severityString string) (Severity, error) { case "information": return INFORMATION, nil default: - return UNKNOWN, fmt.Errorf("unkown severity type \"%s\" for cppcheck", severityString) + return UNKNOWN, fmt.Errorf("unknown severity type \"%s\" for cppcheck", severityString) } } diff --git a/pkg/healthcheck/meta.go b/pkg/healthcheck/meta.go index 2e78d50..a78da6b 100644 --- a/pkg/healthcheck/meta.go +++ b/pkg/healthcheck/meta.go @@ -25,7 +25,7 @@ func getMetas(rootDir string, fileList []string) ([]string, string, error) { matched := false umatchedRes := "" - // TODO: it seems that there is no good find subsitution now + // TODO: it seems that there is no good find substitution now // modify current code if exist a better solution for i, regex := range regexList { for _, file := range files {