Skip to content

Add .editorconfig#6

Merged
anadav merged 1 commit into
mainfrom
chore/add-editorconfig
May 15, 2026
Merged

Add .editorconfig#6
anadav merged 1 commit into
mainfrom
chore/add-editorconfig

Conversation

@anadav
Copy link
Copy Markdown
Collaborator

@anadav anadav commented May 15, 2026

Summary

  • Adds .editorconfig to pin indent style and whitespace conventions across the repo.

Style choices

  • C / Python / Shell: 4-space soft tabs (matches existing code).
  • Makefile{,.in,.am}: hard tabs (Make requires this).
  • YAML (.github/workflows/*.yml): 2-space (matches existing workflow style).
  • Final newline + trailing-whitespace trim enabled globally.

Test plan

  • CI green (workflow runs on PR via pull_request trigger).
  • After merge: auto-delete-on-merge removes the source branch.

Filed as the first PR exercising the new branch-protection / PR-required workflow.

Pins indent style and whitespace conventions so editors and IDEs don't
introduce noise: 4-space soft tabs for C/Python/Shell, hard tabs for
Makefiles, 2-space for YAML.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 15, 2026 17:59
@anadav anadav merged commit 958b05c into main May 15, 2026
3 checks passed
@anadav anadav deleted the chore/add-editorconfig branch May 15, 2026 18:00
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds an .editorconfig file to standardize whitespace/indentation behavior across the repository, aiming to keep formatting consistent across editors and contributors.

Changes:

  • Introduces a repo-root .editorconfig with UTF-8, LF newlines, final newline insertion, and trailing-whitespace trimming.
  • Sets default indentation to 4-space soft tabs, with Makefile-specific hard-tab indentation.
  • Sets YAML indentation size to 2 spaces via a glob rule.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .editorconfig
Comment on lines +14 to +15
[*.{yml,yaml}]
indent_size = 2
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.

2 participants