Add plan linter module

This commit is contained in:
2026-02-08 09:28:59 +00:00
parent 6fee638ba1
commit 0f4837a818

11
src/linter.ts Normal file
View File

@@ -0,0 +1,11 @@
// Plan linter
import { parse } from "./parser";
export function lint(plan: string) {
const lines = parse(plan);
const warnings: string[] = [];
for (const line of lines) {
if (line.includes("ASAP")) warnings.push("Ambiguous urgency: ASAP");
}
return warnings;
}