62ac2e9d6c
Integrating into Bari 206 turned up a pattern that cannot match correctly
formatted source. Its CLAP_DESCRIPTION is long enough that rustfmt wraps
the assignment:
const CLAP_DESCRIPTION: Option<&'static str> =
Some("Multiband compressor/limiter (...)");
A site pattern spanning `const ... = Some("...")` never matches that, and
the fix is general rather than specific to this field: a site pattern
should be the narrowest fragment that is still distinctive, so formatting
decisions above it cannot break the check. Some("...") is unique enough
and lives on one line whatever rustfmt does with the rest.
Also stops appending a bare newline to STALE when nothing was retired,
which a no-op regeneration does on every run.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WHt4DykxXaQnyaJfyS8KCn
2.6 KiB
2.6 KiB
| 1 | # branding-sites.tsv - every place a canonical name has to appear, and in what form. | |||
|---|---|---|---|---|
| 2 | # | |||
| 3 | # Generated and refreshed by tools/brand-plugin.sh; read by tools/check-branding.sh, | |||
| 4 | # which asserts each pattern is present in its file. Tab-separated, four columns: | |||
| 5 | # | |||
| 6 | # kind req = a missing file is a failure; opt = a missing file is a skip | |||
| 7 | # you added by hand. Custom rows are preserved across regeneration; | |||
| 8 | # owned rows are overwritten, so do not hand-edit those. | |||
| 9 | # file repo-relative path | |||
| 10 | # pattern literal text that must appear in that file, already resolved | |||
| 11 | # | |||
| 12 | # Adding a site for something the template does not ship is a one-line edit here | |||
| 13 | # | |||
| 14 | #kind | owner | file | pattern |
| 15 | req | pkg.bundler | bundler.toml | [nih_plug_template] |
| 16 | opt | pkg.ci | .github/workflows/ci.yaml | cargo xtask bundle nih_plug_template |
| 17 | opt | pkg.readme | README.md | cargo xtask bundle nih_plug_template |
| 18 | opt | display.notice | NOTICE | Plugin Name |
| 19 | req | struct.def | src/lib.rs | struct MyPlugin { |
| 20 | req | struct.plugin | src/lib.rs | impl Plugin for MyPlugin { |
| 21 | req | struct.clap | src/lib.rs | impl ClapPlugin for MyPlugin { |
| 22 | req | struct.vst3 | src/lib.rs | impl Vst3Plugin for MyPlugin { |
| 23 | req | struct.exportclap | src/lib.rs | nih_export_clap!(MyPlugin); |
| 24 | req | struct.exportvst3 | src/lib.rs | nih_export_vst3!(MyPlugin); |
| 25 | req | params.def | src/lib.rs | struct PluginParams { |
| 26 | req | params.default | src/lib.rs | impl Default for PluginParams { |
| 27 | req | params.field | src/lib.rs | params: Arc<PluginParams>, |