<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div>Apologies, i'm not 100% sure I understood what you need.<br></div>
<div> </div>
<div>You can always disable any checks you don't care for: --disable=C0101,C0102<br></div>
<div> </div>
<div>Do you still want to see the warnings about stuff like C0101, just don't want the build to be marked as failed?<br></div>
<div> </div>
<div>In the latest versions of pylint the exit code is a bitwise or of the following:<br></div>
<div>MSG_TYPES_STATUS = {<br></div>
<div> 'I' : 0, # info<br></div>
<div> 'C' : 16, # conventions<br></div>
<div> 'R' : 8, # refactor<br></div>
<div> 'W' : 4, # warning<br></div>
<div> 'E' : 2, # error<br></div>
<div> 'F' : 1 # fatal<br></div>
<div> }<br></div>
<div>You could always write some custom logic in your buildbot config, or wrap your pylint invocation in a bash script that looks at the return value and marks the build appropriately.<br></div>
<div> </div>
<div>Regards,<br></div>
<div>R.<br></div>
<div> </div>
<div>On Fri, May 22, 2015, at 01:13 PM, 岳星兆 wrote:<br></div>
<blockquote type="cite"><div dir="ltr"><div>Hi, <br></div>
<div> </div>
<div>I’m using pylint in buildbot, and I want to customize failure items.<br></div>
<div> </div>
<div>Now I think buildbot give failure result since pylint returns(exit) contains 1 or 2.<br></div>
<div> </div>
<div>So, I wonder how can I customize an error/warning to trigger failure.<br></div>
<div>e.g, when pylint found an C0101, it exit 1 or 2.<br></div>
<div> </div>
<div>Thanks<br></div>
<div>Froilan<br></div>
</div>
<div><u>_______________________________________________</u><br></div>
<div>code-quality mailing list<br></div>
<div><a href="mailto:code-quality@python.org">code-quality@python.org</a><br></div>
<div><a href="https://mail.python.org/mailman/listinfo/code-quality">https://mail.python.org/mailman/listinfo/code-quality</a><br></div>
</blockquote><div> </div>
</body>
</html>