Require clear sections in lint UI fixtures (#62659)

Add `// --- SHOULD FIRE ---- ` and `// ---- SHOULD NOT FIRE ---- ` to
the `/lint-creator` skill.

Release Notes:

- N/A
This commit is contained in:
Miguel Raz Guzmán Macedo
2026-08-27 05:53:18 +00:00
committed by GitHub
parent fe5b7cedc4
commit 6efd4950d6
+9
View File
@@ -46,3 +46,12 @@ description: Add, modify, or test a custom dylint lint in `tooling/lints`. Cover
```
(defaults to `--workspace` if no package is given; the script handles the `--force-warn` and cache-cleaning gotchas documented in the README).
## UI fixture sections
Every lint-specific `ui/*.rs` fixture MUST put cases expected to trigger the lint first, followed by cases expected not to trigger it, using exactly these headings:
```rust
// ==================== SHOULD FIRE ====================
// ================== SHOULD NOT FIRE ==================
```