Commit Graph

2 Commits

Author SHA1 Message Date
Mikkeli Matlock b86d5d3eaf feat: sync branding checker from nih-plug-template
The template grew a considerably more thorough version of the checker this
repo seeded: vendor/email/homepage/description coverage, Rust type names,
CLAP_ID reverse-DNS validation, opt_check so a missing file skips instead
of failing, a git/find fallback so the stale scan cannot pass vacuously
outside a checkout, and a TODO scaffolding report. Take that body verbatim
rather than let two copies drift; fixes belong in the template first.

Three adaptations, all structural rather than stylistic:
- params structs live in src/params.rs here, not src/lib.rs
- CLAP_DESCRIPTION wraps onto a second line, so the const name and its
  value never share one line; match the value alone
- STALE is seeded with this repo's CURRENT spellings. Each is skipped
  while still canonical and arms the moment that value changes, so the
  planned "codename 206" -> "206" rename checks itself: every spelling
  left behind becomes a FAIL naming the files that still hold it.

28 passed, 0 failed, 8 skipped. Verified against drift, not just for a
green run: wrong params name, wrong CLAP_DESCRIPTION, and a simulated
rename each fail with exit 1.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LU1NRL7fAaZTtFMTTPn2b1
2026-08-31 21:25:23 +09:00
Mikkeli Matlock eda3d09399 feat: branding consistency checker
Branding is duplicated across Cargo.toml, bundler.toml, deploy.ps1 and
src/lib.rs with nothing keeping them in sync, so a rename drifts silently:
the bundle builds under one name while deploy.ps1 looks for another.

check-branding.sh declares the canonical identity once and asserts every
copy matches, including that VST3_CLASS_ID is exactly 16 bytes. A STALE
list catches leftovers of the old name after a rename. Portable POSIX sh
so it works on Windows (Git Bash) and Linux alike; .gitattributes pins
*.sh to LF so core.autocrlf=true cannot break the shebang.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LU1NRL7fAaZTtFMTTPn2b1
2026-08-29 02:23:28 +09:00