Search code examples
triggersperforcephpcodesniffer

Is there any way or workaround to have a perforce client-side trigger?


We don't have access to the server but we would like to run a code sniffer before submit the files to the depo. I know this is very simple having access to the server triggers but is there any possibility to have something like that in the client side? So if my script returns 1 it should cancel the submission operation.


Solution

  • The Perforce Broker is a pretty nice tool for this: http://www.perforce.com/perforce/doc.current/manuals/p4sag/11_broker.html