From 45a7dd40ecdc8e8965ea6dbc9c6ca137c5feaabc Mon Sep 17 00:00:00 2001 From: gotbadger Date: Thu, 7 Mar 2024 15:14:56 +0000 Subject: [PATCH] fix: string output ordering causing test flake --- internal/commands/process/settings/rules.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/commands/process/settings/rules.go b/internal/commands/process/settings/rules.go index 4fa80fe20..fdbd27974 100644 --- a/internal/commands/process/settings/rules.go +++ b/internal/commands/process/settings/rules.go @@ -5,6 +5,7 @@ import ( "io/fs" "os" "path/filepath" + "sort" "strings" "github.com/rs/zerolog/log" @@ -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 {