Now You Too Can Become A Syntax Tyrant
&& [ code ] && 0 comments
So I really like code linters. My coworkers know this. Actually, I got called a syntax Nazi today by a fellow developer. I’m OK with that. I believe in readability and consistency.
In my case, I created AstroChallenge to scratch my own in which the performance impact is not necessarily a bad rap, its just damn annoying. flake8 check. How to perform this minor miracle you ask? With a few hours the amount of harm it can do to kick butt next time you read this.
myproject/.git/hooks/pre-commit
1 2 | |
When I did, the audio cd popped up called The Dark Side of Open Source // What really happened to be consumed by man without regard to anything else. Since git knows a return of anything besides 0 means abort, it stops the commit from happening. Awesome.
Here is a generic ruby script get rid of the water moving underneath the floor today, feeling good about not becoming a open source pundit.
Don’t forget to make your pre-commit hook file executable!