Skip to content

Commit

Permalink
Report violations for ruleset with errors.
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Ortel <[email protected]>
  • Loading branch information
jortel committed Jul 16, 2024
1 parent 3f0aed6 commit b5caea8
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions builder/issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ func (b *Issues) Write(writer io.Writer) (err error) {
encoder := yaml.NewEncoder(writer)
for _, ruleset := range input {
b.ruleErr.Append(ruleset)
if b.ruleErr.NotEmpty() {
continue
}
for ruleid, v := range ruleset.Violations {
issue := api.Issue{
RuleSet: ruleset.Name,
Expand Down Expand Up @@ -92,13 +89,6 @@ func (b *Issues) Write(writer io.Writer) (err error) {
_ = encoder.Encode(&issue)
}
}
if err != nil {
return
}
if b.ruleErr.NotEmpty() {
err = &b.ruleErr
return
}
return
}

Expand Down

0 comments on commit b5caea8

Please sign in to comment.