Skip to content

ci: count SQL -- comments in the two-line comment check (GRYT-1960) - #347

Merged
grytchat merged 1 commit into
mainfrom
claude/GRYT-1960-sql-comment-length
Oct 27, 2026
Merged

grytchat merged 1 commit into
mainfrom
claude/GRYT-1960-sql-comment-length

Conversation

@grytchat

Copy link
Copy Markdown
Contributor

check-comment-length.mts read //, /* */ and #, but not -- inside the SQL template strings. So the 12-line schema comment in #346 passed the check. That one is trimmed in #346 now.

  • A line starting with -- (or just --) counts as a comment line. A bare -- is free, the same way a bare // is.
  • The 15 runs already in src/db/sqlite/connection.ts are allowed through by SQL_DEBT, capped at 15. A new long one in that file pushes the count to 16 and fails. GRYT-1960 trims them and lowers the cap.

I checked it both ways: it passes on main, and fails with 16 when #346's old comment is put back.

Only the script changes, so src/db isn't touched here.

🤖 Generated with Claude Code

Comments inside SQL template strings were invisible to the check, so a
12-line schema comment in server#346 passed it. The 15 existing runs in
connection.ts are capped in SQL_DEBT, to be trimmed in GRYT-1960.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@grytchat
grytchat merged commit 5f21917 into main Oct 27, 2026
6 checks passed
@grytchat
grytchat deleted the claude/GRYT-1960-sql-comment-length branch October 27, 2026 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant