Skip to content

Commit

Permalink
fix: string output ordering causing test flake
Browse files Browse the repository at this point in the history
  • Loading branch information
gotbadger committed Mar 7, 2024
1 parent 6d1582a commit 45a7dd4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/commands/process/settings/rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"io/fs"
"os"
"path/filepath"
"sort"
"strings"

"github.com/rs/zerolog/log"
Expand Down Expand Up @@ -336,6 +337,7 @@ func validateRuleOptionIDs(
}

if len(invalidSkipRuleIDs) > 0 {
sort.Strings(invalidSkipRuleIDs)
output.StdErrLog(fmt.Sprintf("Warning: rule IDs %s given to be skipped but were not found", strings.Join(invalidSkipRuleIDs, ",")))
}
if len(invalidRuleIDs) > 0 {
Expand Down

0 comments on commit 45a7dd4

Please sign in to comment.