Rules Bag Reviewer

Your house rules, on every pull request

Connect a GitHub repo and every pull request gets a line-by-line review against the rules bag: Result over throw, cement primitives, honest types and readable shapes. You choose which rules leave a comment and which ask for changes.

One click through GitHub, and you pick the repos.
src/load.ts3f9c2ab · 3 findings · 1 blocking
11export async function load(raw: any) {
12 try {
Result, not throwReturn a Result, so the caller sees the failure in the type.
13 const u = new URL(raw.href);
Cement primitivescement's URI parses without throwing.
14 if (!u) return undefined;
Explicit comparisonsCompare to undefined and say what you mean.
15 return JSON.parse(raw.body);
16 } catch (e) {