Skip to content

feat(git-hooks): fall back to the standards lint configs when standards_repository is set #18971

Done

Description

@kyle-sexton

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

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.sh holds the one resolver (rt_standards_file), shared to the plugin copies.

Related

Activity

  1. added
    session-owned
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    session-owned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions