Reindent pre-commit hook
Consider swift files when checking for whitespace in commit hook