Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.
JavaScript agentic-codingai-agentsai-governanceautonomous-agentsclaude-codeclicode-reviewcodexcoding-agentsdeveloper-toolsgit-hooksllmlocal-firstmulti-agentsoftware-factoryspec-driven-developmentverificationvibe-coding
fix(sweep): read single-word rule names like camelcase [N15,N18]
Corey Olson48eee1baf11e
diff --git a/src/run.js b/src/run.jsindex d4d5566d..60e07f18 100644--- a/src/run.js+++ b/src/run.js@@ -273,7 +273,7 @@ export function featuresOf(item) {const brief = item.item_brief ?? '';const named = /^kind:\s*(.+)$/im.exec(brief);if (named) return [...new Set(named[1].split(/[\s,+]+/).filter(Boolean))].sort();- const rules = [...brief.matchAll(/^\s*- line \d+(?::\d+)? ([\w@/-]+):/gm)].map((match) => match[1]);+ const rules = [...brief.matchAll(/^\s*- line \d+(?::\d+)?:? ([a-z@][\w@/-]*)[:\s]/gm)].map((match) => match[1]);return rules.length ? [...new Set(rules)].sort() : ['unlabelled'];}diff --git a/src/sweep.js b/src/sweep.jsindex 379d3cc9..291945d5 100644--- a/src/sweep.js+++ b/src/sweep.js@@ -10,6 +10,7 @@ const TSC_RE = /^(.+?)\((\d+),(\d+)\): (?:error|warning) (TS\d+): (.+)$/;const LINE_RE = /^([^\s:][^:]*?):(\d+)(?::(\d+))?:?\s+(.+)$/;const SEVERITY_RE = /^(?:error|warning|note|info)\s*:?\s*/i;const RULE_FIRST_RE = /^\[?([A-Z]{1,4}\d{2,5}|[a-z@][\w-]*\/[\w-]+|[a-z][a-z0-9]*(?:-[a-z0-9]+)+)\]?:?\s+(.+)$/;+const WORD_RULE_RE = /^([a-z][a-z0-9]*)\s+([A-Z].*)$/;const RULE_LAST_RE = /^(.*?)\s+\[(?:(?:error|warning)\/)?([A-Za-z@][\w/-]*)\]$/i;const MAX_LISTED = 30;@@ -42,14 +43,15 @@ function fromEslint(text) {/*** A problem's rule and message, in the shapes checkers print: a code or rule name first (`F401 ...`,- * `no-var ...`), or a rule in brackets last (`... [return]`, `... [Error/no-var]`).+ * `no-var ...`, or one lowercase word before a capitalized message, `camelcase Name ...`), or a rule+ * in brackets last (`... [return]`, `... [Error/no-var]`).** @param {string} text* @returns {{ rule: string, message: string }}*/function ruleAndMessage(text) {const rest = text.replace(SEVERITY_RE, '').trim();- const first = RULE_FIRST_RE.exec(rest);+ const first = RULE_FIRST_RE.exec(rest) ?? WORD_RULE_RE.exec(rest);if (first) return { rule: first[1], message: first[2].trim() };const last = RULE_LAST_RE.exec(rest);if (last) return { rule: last[2], message: last[1].trim() };