Files
nih-plug-template/tools/branding-sites.tsv
T
mikkeli 62ac2e9d6c fix: match the narrowest distinctive fragment, and stop padding STALE
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
2026-09-02 16:37:59 +09:00

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#kindownerfilepattern
15reqpkg.bundlerbundler.toml[nih_plug_template]
16optpkg.ci.github/workflows/ci.yamlcargo xtask bundle nih_plug_template
17optpkg.readmeREADME.mdcargo xtask bundle nih_plug_template
18optdisplay.noticeNOTICEPlugin Name
19reqstruct.defsrc/lib.rsstruct MyPlugin {
20reqstruct.pluginsrc/lib.rsimpl Plugin for MyPlugin {
21reqstruct.clapsrc/lib.rsimpl ClapPlugin for MyPlugin {
22reqstruct.vst3src/lib.rsimpl Vst3Plugin for MyPlugin {
23reqstruct.exportclapsrc/lib.rsnih_export_clap!(MyPlugin);
24reqstruct.exportvst3src/lib.rsnih_export_vst3!(MyPlugin);
25reqparams.defsrc/lib.rsstruct PluginParams {
26reqparams.defaultsrc/lib.rsimpl Default for PluginParams {
27reqparams.fieldsrc/lib.rsparams: Arc<PluginParams>,