Repository navigation
Description
Description
The typos tool reads its configuration from any of three filenames: typos.toml, .typos.toml, or _typos.toml. The scaffold guards two of them:
- a consumer's
.typos.tomlis inPRESERVE_FILES(fix(workspace): scaffold upgrade clobbers a customized .typos.toml (dual-config corruption) #913), and - a legacy
_typos.toml(with no.typos.toml) is handled at copy time viaMODE_CONFIG_EXCLUDES— the template.typos.tomlis not shipped, so the consumer keeps a single active config.
The third valid filename, undotted typos.toml, has no guard. The scaffold ships the template .typos.toml alongside it, leaving two active configs in the workspace — the same dual-config corruption class #913 fixed for _typos.toml.
Steps to Reproduce
- Consumer repo with a curated undotted
typos.toml(e.g. a large domain-term/person-name allowlist) and no.typos.toml - Run
init-workspace.sh(fresh scaffold or--forceupgrade) - The template
.typos.tomlis written next to the existingtypos.toml
Expected Behavior
Same as the _typos.toml legacy case: the consumer's existing file is treated as the single active config and the template copy is not shipped (or the file is migrated to the canonical .typos.toml name with a visible notice in the scaffold report).
Actual Behavior
Both typos.toml and .typos.toml exist after scaffolding. Depending on the tool's resolution order, the consumer's curated exceptions are silently shadowed — the typos hook then flags legitimate domain terms, or new exceptions get added to the file that isn't being read.
Environment
devkit 1.4.2 (init-workspace.sh, MODE_CONFIG_EXCLUDES legacy-typos branch). Real-world consumer: a private single-user repo carrying a large undotted typos.toml allowlist, evaluated for devkit adoption.
Possible Solution
Extend the existing #913 legacy-config branch in init-workspace.sh (the MODE_CONFIG_EXCLUDES block that special-cases _typos.toml) to also recognize undotted typos.toml as the consumer's single config, mirrored in --preview classification. Add a bats regression case alongside the existing _typos.toml one.
Changelog Category
Fixed
Activity
test(workspace): guard undotted typos.toml against dual configs
fix(workspace): guard undotted typos.toml against dual configs
fix(workspace): guard undotted typos.toml against dual configs (#1289)
feat(workspace): manifest-driven scaffold feature opt-outs (DEVKIT_FE…
fix(workspace): treat pytest no-tests-collected exit as a green no-op (…
feat(init): preflight abort on non-main default branches (#1291)
feat(workspace): scaffold-time Refs policy knob (DEVKIT_REFS_POLICY) (#…
docs(workspace): add solo/private-repo adoption profile (#1294)
c-vigo commentedon Jul 29, 2026
Merged to dev via #1289 (dev-targeted PRs do not auto-close). Ships with the next release.
chore: release 1.5.0 (#308)
chore: release 1.5.1 (#330)
chore: release 1.5.1 (#1311)