From 9efef323ed29ff4e0045786a476dd92f89a81431 Mon Sep 17 00:00:00 2001
From: Kevin Longe <273747162+kvlonge@users.noreply.github.com>
Date: Mon, 30 Nov 2026 08:37:26 +0000
Subject: [PATCH] Break long code lines at dots and brackets on phones
Long names and paths in the tool cards wrapped mid-word on narrow screens,
such as mo/del. They now break before a dot or after a slash or opening
bracket, never inside a string, and dates and short flags stay whole.
---
index.html | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/index.html b/index.html
index b24c583..c1af2b8 100644
--- a/index.html
+++ b/index.html
@@ -102,7 +102,7 @@
# rules/layers.pyfrom sqlbuild.rules import Finding, Model, RuleContext, rule @rule( code="XSQBRARCH001", message="Marts must read sources through staging", remediation="Reference a staging model with __ref() instead.",)def marts_use_staging(*, model: Model, ctx: RuleContext) -> list[Finding]: layer = ctx.project.tree.relative_parts(path=model.path, under="sql/models")[0] sql = ctx.sql.for_model(model).authored.source if layer != "marts" or "__source(" not in sql: return [] line = sql[: sql.index("__source(")].count("\n") + 1 return [ctx.finding(subject=model, line=line)] sqb compile --select daily_revenue…error[XSQBRARCH001]: Marts must read sources through staging --> sql/models/marts/daily_revenue.sql:24:1 | 24 | INNER JOIN __source("raw__payments") p ON o.order_id = p.order_id AND p.status = @enum("payment_status").SUCCESS | ^ = help: Reference a staging model with __ref() instead. ✗ Project compiled 1 model, 0 seeds, 0 functions, 1 error, 0 warningsDocs →
+# rules/layers.pyfrom sqlbuild.rules import Finding, Model, RuleContext, rule @rule( code="XSQBRARCH001", message="Marts must read sources through staging", remediation="Reference a staging model with __ref() instead.",)def marts_use_staging(*, model: Model, ctx: RuleContext) -> list[Finding]: layer = ctx.project.tree.relative_parts(path=model.path, under="sql/models")[0] sql = ctx.sql.for_model(model).authored.source if layer != "marts" or "__source(" not in sql: return [] line = sql[: sql.index("__source(")].count("\n") + 1 return [ctx.finding(subject=model, line=line)] sqb compile --select daily_revenue…error[XSQBRARCH001]: Marts must read sources through staging --> sql/models/marts/daily_revenue.sql:24:1 | 24 | INNER JOIN __source("raw__payments") p ON o.order_id = p.order_id AND p.status = @enum("payment_status").SUCCESS | ^ = help: Reference a staging model with __ref() instead. ✗ Project compiled 1 model, 0 seeds, 0 functions, 1 error, 0 warnings
Docs →