Repository navigation
feat(editorconfig): add gitconfig tab-indentation section - #30
Conversation
Git writes and idiomatically uses tab indentation under each section, so the space default is wrong for git config files. Add a section covering the plain file, gitconfig includes, and chezmoi-style source forms (dot_gitconfig, dot_gitconfig.tmpl) so a consumer tracking a gitconfig passes editorconfig-checker without a local override. Surfaced by the kyle-sexton/dotfiles adoption, which can now drop its consumer-local gitconfig section. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 97709bc654
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| # Git config — git writes (and idiomatically uses) tab indentation under each | ||
| # section, so the space default does not apply. Covers the plain file, gitconfig | ||
| # includes, and chezmoi-style source forms (dot_gitconfig, dot_gitconfig.tmpl). | ||
| [{.gitconfig,*.gitconfig,dot_gitconfig*}] |
There was a problem hiding this comment.
Match prefixed chezmoi gitconfig sources
In chezmoi repos where ~/.gitconfig is marked private/readonly/encrypted, the source filename is prefixed before dot_ (chezmoi documents regular-file prefixes in the order encrypted_, private_, readonly_, empty_, executable_, dot_, with .tmpl allowed). This glob only matches names that start with dot_gitconfig, so a common file like private_dot_gitconfig.tmpl still falls back to the base indent_style = space and editorconfig-checker will continue rejecting Git's tab-indented keys; include the allowed prefixes before dot_gitconfig so the advertised chezmoi coverage actually applies.
Useful? React with 👍 / 👎.
… follow-ups (#41) Marks Phase 4 complete (reference-integrity, Pester, comment-hygiene built; skill-governance the only keep-local gap block), records medley's third cutover wave (#1162/#1167) and the by-decision inline lanes (Pester/dotnet/ts), and logs the post-cutover platform follow-ups (ci-workflows #30–#39) + the dotnet/ts no-build decision. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The powershell lane intermittently fails on the transient PSScriptAnalyzer #1708 subprocess crash. ci-workflows #27 added a retry; re-pin the powershell action from 9780be3 to fb60ebe to adopt it (predates #30's git-tracked discovery change, so lint scope is unchanged). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Git writes and idiomatically uses tab indentation under each
[section], so the base[*]space default is wrong for git config files. This adds a section covering the plain file, gitconfig includes, and chezmoi-style source forms:Surfaced by the
kyle-sexton/dotfilesadoption (PR #39), whosedot_gitconfig.tmplneeded a consumer-local override to pass editorconfig-checker. With this upstream, that consumer can drop the local section and re-sync.editorconfigto byte-identical. No effect on repos without a gitconfig (the section matches nothing).🤖 Generated with Claude Code