From 77a015b96db8727bb12d0869f180a44d087f6319 Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Tue, 15 Sep 2026 22:11:33 +0200 Subject: an undecided (stop) rule ends the search for that file --- cmd/krino/explain.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cmd/krino/explain.go') diff --git a/cmd/krino/explain.go b/cmd/krino/explain.go index f65df42..09145b9 100644 --- a/cmd/krino/explain.go +++ b/cmd/krino/explain.go @@ -72,8 +72,11 @@ func cmdExplain(g *globals, args []string, stdout, stderr io.Writer) int { continue } status := "no" - if rt.Match { + switch { + case rt.Match: status = "MATCH" + case rt.Trace != nil && rt.Trace.Unknown: + status = "undecided" } fmt.Fprintf(stdout, "rule %s: %s\n", rt.Rule.Name, status) printTrace(stdout, rt.Trace) -- cgit v1.3