Skip to content

Update .editorconfig file - #1913

Open
mhucka wants to merge 2 commits into
quantumlib:mainfrom
mhucka:update-editorconfig
Open

Update .editorconfig file#1913
mhucka wants to merge 2 commits into
quantumlib:mainfrom
mhucka:update-editorconfig

Conversation

@mhucka

@mhucka mhucka commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

This updates the project .editorconfig file to use a better approach that was discovered over time in other projects. Instead of setting properties (particularly indent_size) explicitly for most file types, this sets global default values, and then only sets file-specific values if they need to differ from the default(s).

In addition, this streamlines the comments to be more concise and focused.

mhucka added 2 commits July 28, 2026 02:07
This updates the project `.editorconfig` file to use a better approach
that was discovered over time in other projects. Instead of setting
properties (particularly `indent_size`) explicitly for most file types,
this sets global default values, and then only sets file-specific values
if they need to differ from the default(s).

In addition, this streamlines the comments to be more concise and
focused.
@mhucka
mhucka marked this pull request as ready for review July 28, 2026 22:35

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request reorganizes and updates the .editorconfig file, establishing a default indentation size of 4 spaces under [*] and adding specific rules for Makefiles, commit messages, and patch files. The review feedback highlights two important issues: first, setting a numeric indent_size for Makefiles can cause some editors to use spaces instead of tabs, leading to syntax errors; second, the global trim_trailing_whitespace = true setting will strip trailing double spaces in Markdown files, which are syntactically significant for line breaks. It is recommended to address both of these configuration issues.

Comment thread .editorconfig
Comment thread .editorconfig
@mhucka mhucka added the devops Involves build systems, Make files, Bazel files, continuous integration, and or other DevOps topics label Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devops Involves build systems, Make files, Bazel files, continuous integration, and or other DevOps topics

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant