Commit Graph
24660 Commits
Author SHA1 Message Date
.CooCoo 2be104c287 Merge pull request #10553 from dotCooCoo/fix/test-lint-base-size-first
xtask: test-lint checks a base file's blob size before reading it
2026-12-02 09:51:29 -08:00
.CooCoo c45fd2d457 Merge pull request #10585 from dotCooCoo/fix/census-lint-review-points
xtask: test-lint census rule counts a computation only where it runs on the entry
2026-12-02 09:51:23 -08:00
.CooCoo ba03b54e4f Merge pull request #10470 from dotCooCoo/fix/test-lint-helper-ignore-wrapper-guards
xtask: test-lint no longer reports helper, diagnostic and fixed-size false alarms
2026-12-02 09:51:17 -08:00
dotCooCoo 722e35895b Merge main into fix/test-lint-helper-ignore-wrapper-guards 2026-12-02 08:25:10 -08:00
dotCooCoo a62b477090 Merge main into fix/census-lint-review-points 2026-12-02 08:19:51 -08:00
dotCooCoo 5594da577b xtask: test-lint census rule ends tail assignments at their block and tells closure locals from captures
An assignment that ends a block without a semicolon (`{ input = c }`) now
makes its alias at the block's close instead of after the next statement.

A `let` inside a move closure, or one of its parameters, now counts as a
local binding: an assignment to it ends the alias as it does outside a
closure. Assignments to outer captures are still skipped.

A closure stored with `let` in `Some`, `Ok`, `Err`, `Box::new`, `Rc::new`
or `Arc::new` and never used again does not run, so its assignments no
longer end an alias. A closure passed to any other call may run and still
ends it.

An async closure called where it is written now runs when the call is
passed straight to `block_on` (a trailing comma included), unless the
`block_on` sits inside another closure.
2026-12-02 08:17:39 -08:00
.CooCoo 766d1cece8 Merge pull request #10591 from dotCooCoo/fix/test-lint-all-rules-fail
xtask: test-lint fails on a hit of any rule in the changed lines
2026-12-02 08:17:26 -08:00
.CooCoo 86600f56e7 Merge pull request #10426 from dotCooCoo/fix/rebalance-test-shards
CI: run vectorcraft-engine's integration tests on shard 4
2026-12-02 08:08:54 -08:00
dotCooCoo 12355cb529 xtask: test-lint fails on a hit of any rule in the changed lines
all-unguarded, only-weak, exit-status-only, no-assertion, early-return,
env-gate-unset, census, mirror, constant-echo, fixture-only and
exact-pixel only listed their hits before. Their hits on changed lines
and tests now fail the check like the other rules. A
`// test-lint: allow <rule> <reason>` comment still exempts a hit, and
hits on unchanged lines still do not fail.

A never-run test that builds on macOS or Windows is still listed
without failing, since it runs locally on that platform.

Docs: docs/development.md.
2026-12-02 07:42:17 -08:00
.CooCoo 9ad67bd067 Merge pull request #10579 from dotCooCoo/fix/checked-save-folder-moved
Save: a checked save refuses a folder moved outside the write root
2026-12-02 07:25:27 -08:00
dotCooCoo 8fd6ba499e Merge main into fix/rebalance-test-shards 2026-12-02 07:24:39 -08:00
.CooCoo d4fbb1402e Merge pull request #10260 from dotCooCoo/fix/plugins-tree-audit-in-checks
CI: the plug-in grant call-site audit runs in the checks shard
2026-12-02 07:13:43 -08:00
dotCooCoo e22068862a Merge main into fix/census-lint-review-points 2026-12-02 07:11:31 -08:00
dotCooCoo 806aec918a xtask: test-lint census rule counts a computation only where it runs on the entry
The census rule leaves out a loop that feeds each entry into a
computation. It now checks that the computation runs, and that it runs
on the entry:

- An alias assigned another value no longer holds the entry, and one
  assigned the entry holds it. Assignments in an empty loop, an async
  block, a move closure or a closure the loop never calls do not change
  the alias, and one that may be skipped does not make one.
- A nested for body counts only when its source is a literal range or
  array that is not empty.
- A block in an earlier argument keeps the enclosing || or && that can
  skip the call.
- Calling an async closure counts only when the future is awaited or
  passed to block_on.
- A closure that is not bound with let counts only when it is called
  where it is written; a parenthesized initializer binds the closure.
- A closure call resolves to the binding in scope at the call, so a
  later let of the same name takes it.
- A conjunction inside a parenthesized operand of an asserted && is
  required, unless an || at its level can bypass it.
2026-12-02 07:11:24 -08:00
dotCooCoo 39c0f35f22 Save: a checked save refuses a folder moved outside the write root
A checked save (`write_atomic_checked`, used by the engine's file writes
while automation write roots are set) opens the destination folder once
and puts the file in place through that open folder. A folder moved
after it was opened still received the file, so moving it out of the
write root while the file was written placed the file outside the root.

After the file is written, before it takes the old file's permissions
and again right before it is renamed into place, the folder's current
path is checked again with the same check. The copy fallback checks it
before the target is opened and again before the target is created or
overwritten. A folder moved outside the root, or one whose current path
the system does not report (FreeBSD), is refused: the temporary file
and any copy of the old content are removed, and the error names the
original destination. A move within the root keeps working as before.

Follows the checked-write work in 4cb6f8f152 and 6cf9145890.
2026-12-02 06:44:22 -08:00
dotCooCoo 0f3bd62ddc Merge main into fix/rebalance-test-shards 2026-12-02 06:35:21 -08:00
.CooCoo 2276de06ca Merge pull request #10458 from dotCooCoo/fix/census-behavior-tables
xtask: test-lint census rule leaves out loops that run each entry through a computation
2026-12-02 06:30:33 -08:00
dotCooCoo fdda57ea8f Merge main into fix/plugins-tree-audit-in-checks 2026-12-02 06:28:35 -08:00
.CooCoo a6bbe09709 Merge pull request #10571 from dotCooCoo/fix/declare-parent-reads
CI: build two paths without the parent-step literals the read check counts as reads
2026-12-02 06:22:44 -08:00
dotCooCoo fffcca5cd2 CI: build paths without parent-step literals the read check counts as reads
The shared gate's undeclared-read check (select legs) reports two reads
on main: crates/text/build.rs reads the workspace root (`.`) and
crates/engine/src/tests/fontfiles.rs reads `crates`. Neither path names
another member's files.

- crates/text/build.rs takes the workspace root as the second ancestor
  of the crate directory instead of joining "../..". A relative
  CRAFT_FONTS_DIR still resolves from the same directory.
- the_fonts_folder_next_to_a_document_is_an_absolute_path builds its
  climb to the filesystem root from ParentDir components instead of
  formatting a repeated "../". The test still opens the document by a
  relative path to its temporary folder.

The check reports 0 problems on the result, down from 2 on main.
2026-12-02 06:20:29 -08:00
dotCooCoo a02c432ba2 Merge main into fix/rebalance-test-shards 2026-12-02 06:15:55 -08:00
dotCooCoo ffa83d3a7f Merge main into fix/plugins-tree-audit-in-checks 2026-12-02 06:09:48 -08:00
dotCooCoo cf51c8894c xtask: test-lint decodes string continuations in cfg_attr paths and keeps census hits for fixed ranges
A path string that continues on the next line with a backslash now
decodes to the joined file name, so the conditional route is kept.
A range argument with two fixed bounds (1..4, 1..=4) no longer counts
as an input, so the round-trip census diagnostic stays; a range with a
variable bound still suppresses it. Adds a test for a bracket in a
cfg_attr path filename keeping its sibling cfg gate.
2026-12-02 05:55:33 -08:00
dotCooCoo 1361bb3b5c Merge main into fix/census-behavior-tables 2026-12-02 05:23:02 -08:00
FredApps fa5c9e9674 Merge pull request #9847 from storytold/rfc52-headless-column
docs: RFC-0052 Headless section and marking rules in UI parity
2026-12-02 13:19:19 +01:00
dotCooCoo 1eb22f6134 xtask: test-lint census entry reads skip path segments, comment gaps and block statements
- An entry name after `::` (`defaults::c`) is a path segment, not a read of the loop binding.
- A `let` initializer scans to the end of its statement, so a block initializer binds its tail
  (`{ prepare(); c }`) and not the earlier statements in the block; `if let` and `while let`
  end at their block.
- A call keeps its name when masked comment whitespace sits before `(`, except after a keyword
  (`if (a)`).
- The argument-guard and alias tests now depend on the logic they cover.
2026-12-02 03:01:11 -08:00
dotCooCoo fde52f43a2 xtask: test-lint resolves shadowed helpers, literal selectors and aliases
- A renamed import (`use super::other::near as comparison;`) no longer
  counts as a call with a path; an import that keeps the name still does.
- A bare call to a helper's name checks for a local binding in scope
  (`let near = || {}; near();`), skipping type annotations, field labels
  and path segments in patterns.
- Helpers passed in assertion failure messages no longer count as checks.
- A match-arm binding covers the arm's guard, and the arm's pattern stops
  at the block of the arm before it.
- `#[ ignore = "..."]` with whitespace is read as an ignore attribute,
  both for diagnostic tests and for ignore-without-reason.
- Literal ranges read `0x`, `0o` and `0b` bounds.
- A pin compares literal arguments (`r.items("active")` against
  `r.items("archived")`), and does not count when a clone or borrow of the
  source made before the snapshot is still alive.
- A function parameter named like a constant table is not the table.
2026-12-02 02:38:11 -08:00
.CooCoo 2498ef4682 Merge pull request #10185 from dotCooCoo/feat/js-object-set-prototype-of
Scripts: ES2015 realms have Object.setPrototypeOf
2026-12-02 02:36:46 -08:00
.CooCoo d100d66a06 Merge pull request #10250 from dotCooCoo/fix/retype-period-font-order
Retype: glyphs drawn alike in several fonts count as one outline in near matching
2026-12-02 02:22:02 -08:00
.CooCoo 9a7ebdd8a2 Merge pull request #10549 from dotCooCoo/fix/test-lint-plain-path-decode
xtask: test-lint decodes escapes in #[path] values
2026-12-02 02:15:50 -08:00
dotCooCoo 70e69a1750 Merge main into fix/plugins-tree-audit-in-checks 2026-12-02 02:13:53 -08:00
.CooCoo fc0b5321f4 Merge pull request #10425 from dotCooCoo/chore/never-run-test-allows
xtask: test-lint catches tests a removed module route compiles out, and narrows two false alarms
2026-12-02 02:12:33 -08:00
dotCooCoo b8e72d686c xtask: test-lint checks a base file's blob size before reading it
The changed-lines mode read each base file with `git show` and only then
compared the length of the trimmed, lossily decoded text with the 16 MiB
limit, so a large blob was loaded in full before it was skipped, and
trailing whitespace and invalid UTF-8 changed the length it was judged
by. The base reads now take each blob's size from one `git ls-tree -l`
listing of `crates`, `apps` and `xtask` (or `git cat-file -s` for a path
the listing does not hold) and run `git show` only for blobs within the
limit.
2026-12-02 02:11:07 -08:00
.CooCoo ce867b3d23 Merge pull request #10467 from dotCooCoo/fix/sr-art-limit
Step and Repeat: refuse a grid whose copies would hold more than 250,000 objects
2026-12-02 02:02:46 -08:00
.CooCoo 68b01f3a5d Merge pull request #10480 from dotCooCoo/fix/wrap-sources-no-copies
Text Wrap: Make's no-type warning checks the wrap objects without copying their shapes
2026-12-02 02:02:39 -08:00
.CooCoo d753c48d2e Merge pull request #10483 from dotCooCoo/fix/windows-evalfile-uri
Scripts: $.evalFile reads the URI paths File.parent gives, on Windows too
2026-12-02 02:02:31 -08:00
.CooCoo 907db2002f Merge pull request #10487 from dotCooCoo/fix/mark-bounds-tiny-objects
Arrange Tools: Mark Bounds of Each draws no empty group for an object too small for corner legs
2026-12-02 02:02:23 -08:00
.CooCoo 4e554e2c82 Merge pull request #10488 from dotCooCoo/fix/pdf-dialog-trim
Import PDF: a PDF with editing data opens on its trim boxes unless a box is picked
2026-12-02 02:02:15 -08:00
.CooCoo 245af424e0 Merge pull request #10511 from dotCooCoo/fix/print-media-per-printer
Print: the Size list shows the chosen printer's paper sizes
2026-12-02 02:02:07 -08:00
.CooCoo e3e84bd4fb Merge pull request #10539 from dotCooCoo/fix/ai-save-options-compatibility-default
Scripts: new IllustratorSaveOptions reads compatibility as ILLUSTRATOR19
2026-12-02 02:01:50 -08:00
.CooCoo 02ca7c1148 Merge pull request #10538 from dotCooCoo/fix/script-setters-measure-after-activate
Scripts: width, height and position setters measure after the document comes to the front
2026-12-02 01:45:21 -08:00
.CooCoo 1385fed88c Merge pull request #10518 from dotCooCoo/fix/panel-title-strip-corners
Dock: the docked Tools card keeps its rounded top corners
2026-12-02 01:40:36 -08:00
dotCooCoo 859a6b4dd3 xtask: test-lint decodes escapes in #[path] values
A plain #[path = "\x63hild.rs"] after #[cfg_attr(windows, path = "child.rs")]
loads child.rs on Linux and FreeBSD, but test-lint compared the undecoded
spelling with the file name, dropped that route and reported a test in
child.rs as never-run. The plain attribute and the path argument of
cfg_attr now decode the escapes of an ordinary string literal with the
same unescape the cfg values use. Raw string literals are read as written.
2026-12-02 01:33:38 -08:00
.CooCoo b62851f57a Merge pull request #10431 from dotCooCoo/fix/test-lint-hits
Tests: check nightly ids and panel places by behavior
2026-12-02 01:30:08 -08:00
.CooCoo b601a3bf44 Merge pull request #10540 from dotCooCoo/fix/script-write-holds-checked-folder
Save: checked writes go into the folder that was checked
2026-12-02 01:26:46 -08:00
dotCooCoo b65de1d729 Merge main into chore/never-run-test-allows 2026-12-02 01:21:47 -08:00
.CooCoo d94c7477c5 Merge pull request #10544 from dotCooCoo/fix/js-host-class-install-atomic
JavaScript: a failed host class install adds none of its classes
2026-12-02 01:16:03 -08:00
dotCooCoo df12f897d4 xtask: test-lint reads a closure body past turbofish commas
An expression closure such as `|body: fn()| forward::<u8, u16>(body)`
ended at the comma inside the turbofish, so a parameter named like an
asserting helper stopped shadowing it at that comma. The closure body
now skips a turbofish whole.

A count or emptiness getter on a pinned snapshot (`let _ = got.len();`)
keeps the pin; only a read of the receiver itself that is bound or
passed to a call may hand out an alias.
2026-12-02 01:11:04 -08:00
.CooCoo 0c6aaa074d Merge pull request #10448 from dotCooCoo/fix/make-numbers-sequence
Type Tools: Make Numbers Sequence numbers the selected type objects
2026-12-02 01:10:32 -08:00
dotCooCoo cbd1936ae6 xtask: test-lint no longer reports helper, diagnostic and fixed-size false alarms
no-assertion:
- A call in a top-level test reaches the helper its own file defines. A
  non-asserting helper of the same name in another file of the crate no
  longer hides it. Names the file also calls with a path, and
  definitions below the file's top level, keep the crate's verdict.
- An `#[ignore = "reason"]` test that prints is a diagnostic and needs
  no assertion.
- An asserting function passed by name as a value
  (`keeping_settings(the_body)`, `run(&[body])`) counts as the test's
  check, also through a helper that passes it, unless a local binding,
  loop pattern, match arm or parameter shadows the name in scope, or the
  value is dropped (`drop(body)`, `let _ = Some(body)`, `(body,);`).

all-unguarded:
- A parenthesized range of literals or constants, `(0..3).all(...)`.
- A receiver whose source an earlier `assert_eq!` compares with a
  non-empty literal: a local collected from the receiver, or the call
  the receiver is bound to, when nothing changes the source in between.
  A shared borrow passed to a call outside an assertion may change it.
- A call to a function of the file that lists every row of a non-empty
  constant table without filtering it; every function of that name in
  the file has to do so.
2026-12-02 01:01:37 -08:00