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.
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.