Aquesta és una versió anterior. La versió actual és la 0.1.404. Anchors 0.1.404 · Data de publicació:
Fitxers d’instal·lació 0.1.355
| Arquitectura | Tipus | Àmbit | Mida del fitxer | Baixa | SHA256 |
|---|---|---|---|---|---|
| 64 bits | ZIP → Portable | — | — | github.com | VirusTotal |
| ARM64 | ZIP → Portable | — | — | github.com | VirusTotal |
L’enllaç i l’SHA256 provenen del manifest comunitari del Gestor de paquets del Windows. Convé comparar el hash del fitxer baixat abans d’executar-lo.
Notes de la versió
New: section-required, the spec sections your code calls for
A layer can declare the spec sections its code calls for. Each section comes with a trigger
that Anchors already measures:
layers:
component:
requires_sections:
- section: "Test IDs"
when: {exposes: test_handles} # the code exposes a handle
- section: "Data Contract"
when: {depends_on_layer: [hook, store]} # the code depends on these layers
- section: "Navigation"
when: {flag: "@navigates"} # the code carries the flag
- section: "User Messages"
when: {code_matches: 'showToast\('} # your own pattern
The new gate section-required fails a spec that lacks a section its code triggers. The
message names the section, the file and what triggered it.
A section is found by its heading, at any level and in any case. When the unit has none of
what the section covers, write the section anyway and say so and why.
The gate is blocking by default. While you write the sections over an existing tree, set
blocking: false on the gate, or declare a skip with its reason in the commit message.
New: anchors check --show-skips
Lists every indeterminate result (~), grouped by gate and then by reason, the commonest
reason first. Each reason shows its count and the addresses it covers. Use it to tell "does
not apply" from "should have been measured" without reading the gate's source.
Everything in the v0.1.351 notes still applies: run anchors migrate once, crossing format 8.
Changelog
- 75d39a2 feat(gate): section-required charges the spec sections a unit's code calls for; check --show-skips