Join GitHub today
Perform lint checks and fixes on staged files, as a pre-commit hook #1157
There is this fantastic tool called pre-commit. It allows executing of a number of hooks when a commit is about to be performed. We could and should leverage it to make sure checked-in code adheres to code styles. Also, a number of small nuisance can be automatically fixed by pre-commit hooks.