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

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -