From c497d173b24b1b8247fac9e996e5c0fe690c1769 Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Mon, 14 Sep 2026 21:43:23 +0200 Subject: plan 9: undo review matches review, --min-age validated, future mtimes, rule names, conflict enum, dependency gate, absolute tool paths --- internal/config/dir.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'internal/config/dir.go') diff --git a/internal/config/dir.go b/internal/config/dir.go index 461d912..54ee35e 100644 --- a/internal/config/dir.go +++ b/internal/config/dir.go @@ -184,6 +184,10 @@ func parseRule(n *sexp.Node, d *diags) *Rule { d.at(n, `rule needs a name in quotes first, like (rule "invoices" ...)`) return nil } + if strings.HasPrefix(args[0].Text, "(") { + d.at(n, `rule names cannot start with "(": (review) marks choices made in review`) + return nil + } r := &Rule{Name: args[0].Text, Pos: n.Pos} seen := map[string]*sexp.Node{} var whenNode *sexp.Node -- cgit v1.3