FOME-Tech / fome-fw

Free Open Motorsports ECU
https://www.fome.tech
Other
43 stars 22 forks source link

editorconfig.org #332

Open rusefillc opened 8 months ago

rusefillc commented 8 months ago

https://editorconfig.org/

EditorConfig helps maintain consistent coding styles for multiple developers working on the same project across various editors and IDEs. The EditorConfig project consists of a file format for defining coding styles and a collection of text editor plugins that enable editors to read the file format and adhere to defined styles. EditorConfig files are easily readable and they work nicely with version control systems.

mi-hol commented 7 months ago

Having consistent coding styles makes perfect sense!

Therefore I would suggest indent_size = 4 for all languages

rusefillc commented 7 months ago

@mck1117 see https://learn.microsoft.com/en-us/visualstudio/ide/create-portable-custom-editor-options?view=vs-2022

nmschulte commented 7 months ago

It was mentioned that some tooling to help enforce/automate style would be more preferred: i.e. https://clang.llvm.org/docs/ClangFormat.html