issork / gift

Godot IRC For Twitch addon
MIT License
150 stars 23 forks source link

Add a formatting script for Travis CI #3

Closed aaronfranke closed 4 years ago

aaronfranke commented 4 years ago

This is a simple script which automatically checks and corrects file formatting to comply with POSIX standards. The POSIX standard for text files says that text files have lines delimited with newline characters and the file ends with a newline character. GitHub shows warnings in the diffs when files don't end with newline characters.

To run on Travis, this repo needs to be added on the Travis CI website (optional). The formatting script can also be run locally to fix formatting, which I did with the 2nd commit.

Starting with Godot 3.2, Godot will automatically ensure files end in newlines with its internal editor, but this script can help with fixing up old files, and ensuring this is done with all text files.

issork commented 4 years ago

Thanks a lot!