Skip to content

Commit

Permalink
added _ as a replacement for kind name (#537)
Browse files Browse the repository at this point in the history
  • Loading branch information
garethahealy authored Sep 26, 2024
1 parent 0221080 commit 0c240fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/rego/rego.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ func (r Rego) Severity() Severity {
func (r Rego) Kind() string {
kind := filepath.Base(filepath.Dir(r.Path()))
kind = strings.ReplaceAll(kind, "-", " ")
kind = strings.ReplaceAll(kind, "_", " ")
kind = cases.Title(language.AmericanEnglish).String(kind)
kind = strings.ReplaceAll(kind, " ", "")

Expand Down

0 comments on commit 0c240fe

Please sign in to comment.