craftablescience / ChiraEngine

A customizable MIT-licensed game engine.
https://craftablescience.info/ChiraEngine/
MIT License
33 stars 6 forks source link

Add automatic code formatting tool #48

Closed craftablescience closed 5 months ago

craftablescience commented 1 year ago

Component to Improve

Other

Describe Your Suggestion

We should have a code formatter to preserve and enforce the current code style. I'm thinking clang-format

ashifolfi commented 1 year ago

that might be a bit difficult for me to maintain unless the formatting tool supports KDevelop which is what I'm currently using for IDE choice (VSCode's support for anything is shit and the C++ extension constantly breaks resulting in BS errors that don't exist + my trial of CLion ran out)

ashifolfi commented 6 months ago

The soon-to-be existence of a .editorconfig file should help somewhat with this. Directing editors like Visual Studio and Visual Studio Code which support the VSC++ EditorConfig properties to use the current formatting style (with a few improvements) present throughout ChiraEngine.

craftablescience commented 5 months ago

The editorconfig file should be sufficient for this honestly, autoformatters usually suck