Skip to content

feat(editorconfig): add gitconfig tab-indentation section - #30

Merged
kyle-sexton merged 1 commit into
mainfrom
feat/editorconfig-gitconfig-tab
Jun 23, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
feat/editorconfig-gitconfig-tab

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

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:

[{.gitconfig,*.gitconfig,dot_gitconfig*}]
indent_style = tab

Surfaced by the kyle-sexton/dotfiles adoption (PR #39), whose dot_gitconfig.tmpl needed a consumer-local override to pass editorconfig-checker. With this upstream, that consumer can drop the local section and re-sync .editorconfig to byte-identical. No effect on repos without a gitconfig (the section matches nothing).

🤖 Generated with Claude Code

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>
@kyle-sexton
kyle-sexton merged commit 374a21c into main Jun 23, 2026
1 check passed
@kyle-sexton
kyle-sexton deleted the feat/editorconfig-gitconfig-tab branch June 23, 2026 22:13

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread .editorconfig
# 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*}]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

kyle-sexton added a commit that referenced this pull request Jun 25, 2026
… 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>
kyle-sexton added a commit that referenced this pull request Jun 25, 2026
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant