Discussion:
[p4] Is there a way to fail submit if specific code was found on it?
Michael Mirman
2017-03-09 14:03:21 UTC
Permalink
A content trigger is the only reliable way to do this.
It is possible to have tools and plugins on the client side, but it's easy enough to work around them and use the actual submit.

My 0.02
--
Michael Mirman
MathWorks, Inc.
3 Apple Hill Drive, Natick, MA 01760
508-647-7555
-----Original Message-----
Behalf Of MaxBk
Sent: Thursday, March 09, 2017 8:50 AM
Subject: [p4] Is there a way to fail submit if specific code was found on it?
Posted on behalf of forum user 'MaxBk'.
Hi,
So recently some team leaders asked if it's possible to force fail a submit
if some code pattern was found on the "submitting files".
For example.
John doe wants to submit Test.cs
public string badUsage(){ var a = 0; var b ="Password"; return
otherFunction(a,B); }
var b ="Password"; return otherFunction(
I was thinking about making a tiger for submission the code for specific regex
but I think that there might be a better way/tool/plugin that could do that.
What do you guys think?
What's the best way to implement this?
Thanks in advance,
Max.
--
http://forums.perforce.com/index.php?/topic/5224-is-there-a-way-to-fail-
submit-if-specific-code-was-found-on-it
_______________________________________________
http://maillist.perforce.com/mailman/listinfo/perforce-user
_______________________________________________
perforce-user mailing list - perforce-***@perforce.com
http://maillist.perforce.com/mailman/listinfo/per
Continue reading on narkive:
Loading...