Skip to content

chore: add .editorconfig for consistent formatting - #324

Merged
DevSecNinja merged 1 commit into
mainfrom
devsecninja-add-editorconfig
Aug 18, 2026
Merged

chore: add .editorconfig for consistent formatting#324
DevSecNinja merged 1 commit into
mainfrom
devsecninja-add-editorconfig

Conversation

@DevSecNinja

Copy link
Copy Markdown
Owner

Summary

Adds an .editorconfig to standardize formatting across editors and CI tools.

Problem

PR #240 fails the lint / shfmt check because shfmt defaults to tab indentation, while our org conventions specify 4-space indent for shell scripts. Without an .editorconfig, there's no single source of truth for formatting rules.

Solution

shfmt automatically reads .editorconfig, so this file ensures CI enforces 4-space indent for .sh files — matching the org coding standards — without needing to pass -i 4 flags in every workflow invocation.

Settings applied

Pattern Style Size
* LF endings, final newline, UTF-8
*.{yml,yaml,json} spaces 2
*.md spaces 4
*.sh spaces 4
Makefile tabs

Related

shfmt reads .editorconfig automatically, so CI will now enforce
4-space indent for shell scripts matching the org coding standards.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d78695b5-ded3-4a2c-9f2a-f30c77d7d188
@DevSecNinja
DevSecNinja merged commit 76bb084 into main Aug 18, 2026
17 of 18 checks passed
@DevSecNinja
DevSecNinja deleted the devsecninja-add-editorconfig branch August 18, 2026 08:49
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