Remove whitespaces on empty lines
Remove trailing whitespaces
Add newline at end of files when missing