You'll keep Github happy (and avoid that red icon) if you always leave a blank line at the end of files.