git pre-commit hook bypass email -
i have pre-commit hook runs php codesniffer on files in staging area. however, developers bypass hook adding --no-verify option git commit command. there way can send email each time developer bypasses hook?
too long comment, not complete answer.
whooph... in dvcs world happens in private repo private business. team repository administrator can propose them facilities enhance , simplify job, shouldn't overcarry.
you, however, can , should put automatic sanity checks on receiving commits on team repository side. pre-receive
hook better place obligatory checks.
alternatively, , indeed it's recommended "valuable" project, set more complex system code review (our team uses gerrit there're plenty of them including written in php). thus, team members familiarize other members works, suggest improvements , on, while robots perform routine tasks, checking code-style, running unit- , integration tests , on.
Comments
Post a Comment