Skip to content

Catch the lint rules and skipped portable runs that cost recent PRs a CI run - #428

Merged
alexkroman merged 1 commit into
mainfrom
claude/clever-faraday-mgya99
Nov 25, 2026
Merged

alexkroman merged 1 commit into
mainfrom
claude/clever-faraday-mgya99

Conversation

@alexkroman

Copy link
Copy Markdown
Collaborator

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:

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01DS5B1UDUZXyuF6g7GUmmNu

… 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
alexkroman enabled auto-merge November 25, 2026 21:37
@alexkroman
alexkroman added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit 7848af5 Nov 25, 2026
22 checks passed
@alexkroman
alexkroman deleted the claude/clever-faraday-mgya99 branch November 25, 2026 22:27
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
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.

2 participants