Closed aaronfranke closed 2 years ago
Hm. I'm not sure if I like replacing spaces with tabs - certain editors do not handle tabs correctly. It's always been my rule to use spaces in library code. This is where I would probably ignore the formatter. I'm fine with the removing spaces before colons though.
Tabs work well in both Godot and VS Code, which are mostly what Godot developers will be using. Regardless, this is easy to change later, so I don't want it to get in the way of the rest of these changes. I updated the PR to remove the indentation changes, so now it's just all of the other formatting changes.
This PR runs Razoric's code formatter on every GDScript file in this repo, except for the ones in Gut since that's third-party code. Then I manually looked over all of the changes and only picked out the places where formatting is improved, this is necessary since the formatter has many bugs. This brings Godot Firebase closer to the GDScript style guide. A lot of this is replacing space indentation with tabs, and removing spaces before colons.
I have checked that Godot is still able to read these files, but I have not ran the tests. Please test before merging.