NEW-CYLANDIA / little-warioware

A collectively developed take on Nintendo's WarioWare series, made in Godot Engine
https://new-cylandia.itch.io/little-warioware
MIT License
44 stars 12 forks source link

Find a replacement for auto-format that formats whitespace #39

Open lazerwalker opened 1 year ago

lazerwalker commented 1 year ago

When commits hit main, we run the gdformat tool, autoformat them, and commit those changes. This kinda sucks for a number of reasons.

However, it accomplishes the thing we care about most: enforcing consistent whitespace across the project in a way that doesn't put maintenance burden on moderators to explain how to fix it to devs (since Godot whitespace settings are per-editor, not per-project).

It would be great if we could solve that whitespace problem with a more elegant solution than creating a bot commit that enforces unchangeable formatting rules that we don't necessarily agree with.

paulloz commented 1 year ago

For this in the current action, we should try gdformat ., see if we have the same issue as with gdformat "**/*.gd". It kinda defeats the purpose if we don't run the linter on half the code.