Repository navigation
Catch the lint rules and skipped portable runs that cost recent PRs a CI run - #428
Merged
Merged
Conversation
… CI run Recent multi-commit PRs (#410, #413, #414, #416, #420, #422, #423, #425, #426) mostly spent their extra ~37-minute runs on things nothing caught before CI: - scripts/check-swift-lint-lite.sh: a toolchain-free text match for the opt-in SwiftLint/swift-format rules it can see (modifier_order, no_empty_block, NoBlockComments, swift-format's `catch where`). Run by check.sh (so --portable and --lint-only) and the swift-budgets edit hook; would have flagged the pre-fix files of #414, #422 and #425. - .claude/hooks/push-gate.sh: a PreToolUse hook that runs `check.sh --portable` (~20 s) before any `git push` and blocks a red one — jscpd clones (#420, #422) and post-merge size overruns (#363, #378) were pushes that skipped the documented portable run. - AGENTS.md / CLAUDE.md: a "Rules only CI catches" list for the rest (variable_shadowing, one_declaration_per_file, type_contents_order, multiline_function_chains, MemberImportVisibility, one argument per line), and the new hook and script in the hooks table and permissions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DS5B1UDUZXyuF6g7GUmmNu
alexkroman
enabled auto-merge
November 25, 2026 21:37
alexkroman
pushed a commit
that referenced
this pull request
Nov 25, 2026
One conflict, in .claude/hooks/swift-budgets.sh: #428 added the lint-lite rules inside the per-script scope cases this PR removed. The size and clock checks still narrow their own arguments; check-swift-lint- lite.sh scans what it's given, so the hook keeps one scope case for it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DS5B1Vp9Andd7LBEDhGKeC
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Recent multi-commit PRs (#410, #413, #414, #416, #420, #422, #423, #425, #426)
mostly spent their extra ~37-minute runs on things nothing caught before CI:
SwiftLint/swift-format rules it can see (modifier_order, no_empty_block,
NoBlockComments, swift-format's
catch where). Run by check.sh (so--portable and --lint-only) and the swift-budgets edit hook; would have
flagged the pre-fix files of Fix 15 bugs from an exploratory pass #414, Let a realtime finish that beats start open the socket itself #422 and Fail dictations whose request the system dropped, not wedge them #425.
check.sh --portable(~20 s) before anygit pushand blocks a red one —jscpd clones (Decide the pipeline's press once, when its task is spawned #420, Let a realtime finish that beats start open the socket itself #422) and post-merge size overruns (Keep failed recordings in Library for retry, not deletion #363, Never let a password field's dictation linger on the clipboard or in Recent (#348, #349) #378) were
pushes that skipped the documented portable run.
(variable_shadowing, one_declaration_per_file, type_contents_order,
multiline_function_chains, MemberImportVisibility, one argument per line),
and the new hook and script in the hooks table and permissions.
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01DS5B1UDUZXyuF6g7GUmmNu