Repository navigation
Description
Goal
The aggregate lefthook remote's lint adapters (spelling/typos, markdown-format/markdownlint-cli2, bash-format/shellcheck, actionlint) fall back to melodic-software/standards' lint configs when the repository's docs/conventions/source-control.yaml sets standards_repository, so local hooks use the same default CI does. Bundled defaults stay for repositories without the key.
Owner decision
- Q298 (L3): https://github.com/melodic-software/architecture/blob/f32d7178d132bf8a5402add0985e0ee557ec37ef/docs/owner-decisions.md#L426 verbatim: "OK go w/ recommendations"
- Q295 (Z2 layering rule): https://github.com/melodic-software/architecture/blob/f32d7178d132bf8a5402add0985e0ee557ec37ef/docs/owner-decisions.md#L423 verbatim: "What is the cleanest mechanism? If there isn't one.. I don't want hacky solutions - so we just keep them separate?" and "OK go w/ recommendations"
Rule per tool (Z2)
| Tool | Native layering | Adapter behavior when opted in |
|---|---|---|
| typos | -c FILE merges with the discovered repo config |
standards _typos.toml is the -c base in place of the bundled file; repo config merges over it |
| markdownlint-cli2 | --config is a base; in-tree configs merge over it |
standards .markdownlint-cli2.jsonc is the --config base; it also opts a repo with no config in |
| shellcheck | none (one rc file) | no repo .shellcheckrc: --rcfile standards; any repo rc replaces it whole |
| actionlint | none (one config) | no repo .github/actionlint.{yaml,yml}: -config-file standards; repo file replaces it whole |
Standards checkout: STANDARDS_DIR, else <ghq root>/github.com/<owner>/<repo> (ghq.root, default ~/ghq), as the check-cmds already resolve it (docs/conventions/ecosystems/cross-cutting.yaml:10-11). No checkout or file: today's behavior.
gitleaks and editorconfig-checker have no adapter in this repository; they stay on the standards lefthook remote (melodic-software/standards), which drops its typos, markdownlint and shellcheck jobs so each tool runs once per commit.
Done when
- Tests prove default, extend (merge tools) and replace (single-file tools) per adapter, with controls, against the real binaries.
lib/git-hooks/resolve-tool.shholds the one resolver (rt_standards_file), shared to the plugin copies.
Related
- Layering plan (control-hub working notes, not committed).
- feat(typos,markdownlint): merge a caller's config over standards' instead of replacing it ci-workflows#1219: the CI composites apply the same rule.
Activity