Adds precommit code sniffer hook