by rubiquity · 12y ago · 0 comments
Up next: I would love a Unix utility I could filter my uncommitted diff through and get style guide violations before I even upload to GitHub. Use git for everything, baby.
Almost all of the tools are very configurable in terms of which warnings/errors you want to ignore (e.g., let our max line length be 120 instead of 80), and give pretty good feedback (line numbers, exact error).
Another great benefit is that you have a neutral arbiter of what's the style for your codebase, which helps avoid ruffled feathers.
I'm hoping to create a git filter that stops the commit from happening if there are style guide violations.
You should be able to do this using a pre-commit hook.