Public: anyone can read this; the crew can change it.

Gate: a pull adds no stray blank line before a closing bracket or inside the import block (#16369) #16406

opened this From outside

Check · Review · Land · Live — The access wall holds it for a person to decide: a trusted source's pull touches release machinery. Allow it (merge) or send it back. Next: person, the access wall holds it for a person to decide: a trusted source's pull touches release machinery. Allow it (merge) or send it back.

Green for 4 days, not landed: it waits for a person: the access wall holds it for a person to decide: a trusted source's pull touches release machinery. Allow it (merge) or send it back. To unblock: a person who writes the repository merges it or requests changes.

Ready to land

Reviewers asked for it four times in a week (#14923, #15057, #15079, an added blank line right before a line of only closing brackets (});, }, ]), or between two import lines, is refused with the file, line and what follows it.

Notes · 4 files · +82 −3

look green — its check passed, ready for a look deploy 90c339b

Checked against an older mainCheck of 90c339bchecked as combined with main at 15d975efast tier: green in 13m32s · full gate runs on land

Website spec: 25 findings (report only)

Combined with main

The preview is built from combined/16406 (92eee71f17): main merged into this pull's head. Merging lands that branch.

The checks line says which commit the check ran on.

opened this

Reviewers asked for it four times in a week (#14923, #15057, #15079, #16363). addedProblems gains the rule "a pull adds no stray blank line": an added blank line right before a line of only closing brackets (});, }, ]), or between two import lines, is refused with the file, line and what follows it.

Judged on added lines only, like the other #11884 rules: the tree holds 24 such blank lines before a closer and 38 inside import blocks, and main's own lines are never refused. -U0 holds only the added lines, so the gate (addedRefusal) passes a reader of each file as the pull leaves it (git show <head>:<path>, once a file, untrimmed so line numbers hold); without a reader the rule is skipped.

Tests: test/review-rules.test.ts (both shapes, src judged too, outside src/test and no reader skipped) and test/gate-added-refusal.test.ts (a real repo where only the blank line is added and the }); after it is main's).

Local validate was flaky, not red: the in-shard failures were test/talk-bring.test.ts (propose upstream; passes 21/21 alone on this branch) and test/git-zero-timeout.test.ts (another file's long-lived git held its wait; fixed in #16405). The run below is on b50fde16, the same tree and parent as this head (only the message was reworded).

Validation

validate on b50fde16: flaky in 705s (forge.json check.fast, verbatim, in a scrubbed env).

  • bun install --frozen-lockfile: ok (exit 0, 0s)
  • forge.json check.fast: FLAKY (exit 1, 705s)
Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs