Fix some problems with pre-commit checks

Fix whitespace problems
Remove checks on .erb files (not properly supported by rubocop)