mirror of
https://github.com/ZSeven-W/openpencil.git
synced 2026-05-31 19:04:29 +07:00
CI 'Fail on golden drift' (rust-check.yml) was red because oxfmt inlined the 4-element padding arrays in the committed goldens, while the TS oracle's `JSON.stringify(value, null, 2)` emits them multi-line. Every `bun run format` would re-introduce the drift. Fix: - .prettierignore: ignore crates/op-design-lint/tests/fixtures/golden/ so oxfmt leaves them at the TS-oracle byte-exact format. - regenerate the two affected goldens via the oracle (edge-section-padding.json, stacked-horizontal-padding.json) so they match what the CI drift guard expects. `bun run tools/dump-diagnostics-golden.ts` + `git diff` now clean. `cargo test -p op-design-lint` 149/149 green. fmt-check clean. This was the only red workflow on the v0.8.0-new push; CI should be fully green after this lands.
16 lines
339 B
JSON
16 lines
339 B
JSON
[
|
|
{
|
|
"nodeId": "mobile-root",
|
|
"category": "edge-section-padding",
|
|
"severity": "warning",
|
|
"property": "padding",
|
|
"currentValue": null,
|
|
"suggestedValue": [
|
|
0,
|
|
16,
|
|
0,
|
|
16
|
|
],
|
|
"reason": "mobile root has 0 horizontal padding while 2 content section(s) glue text/icon to screen edge"
|
|
}
|
|
]
|