rbreslow / speak

A full featured chatbox addon for Garry's Mod.
GNU Affero General Public License v3.0
4 stars 0 forks source link

Apply consistent indentation/formatting #21

Open rbreslow opened 4 years ago

rbreslow commented 4 years ago

As a result of the project's LuaFormatter implementation not working, and the project's age, different files have different styles and levels of indentation, single quotes and double quotes, etc.

This issue is to get automatic code formatting working and ensure every file has a consistent style.

GitSparTV commented 4 years ago

https://fptje.github.io/glualint-web/ https://github.com/FPtje/GLuaFixer https://github.com/FPtje/GLuaFixer#command-line-parameters

rbreslow commented 4 years ago

We already use luacheck for linting:

https://github.com/rbreslow/speak/blob/9772976d5aff1ec9f1dfab8a7218c935d0c40f6a/scripts/test#L19-L22

This works well. I think there's room to tune the luacheck config to be more aggressive though.

This issue was more or less scoped to figuring out the automatic code formatting side of the equation, so I appreciate you sharing FPtje's project.