Skip to content

Conversation

@TheSovietPancakes
Copy link
Contributor

In CONTRIBUTING.md, there is a line that reads:

- Opening curly braces { at the end of the same line as the statement/condition.

Along with the other two rules which are defined (4-space-wide tabs, not spaces), the .editorconfig should now match the requirements.

In the future, I think more rules should be added to the editorconfig file, since if I were to format the code it would likely look very different to if somebody else formatted the code. This leads to every source file being a big mix of different styles and since it is not proper etiquette to make a PR for just formatting, the current mess will stick.

@deckstose
Copy link
Collaborator

Is there any difference or maybe an advantage over using clang-format? I have an ongoing effort at #1146 for that. It would include rules on brace placement and much more.

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