[code-quality] Custom exit value of check-items
Radu Ciorba
radu at devrandom.ro
Fri May 22 16:48:57 CEST 2015
Apologies, i'm not 100% sure I understood what you need.
You can always disable any checks you don't care for:
--disable=C0101,C0102
Do you still want to see the warnings about stuff like C0101, just don't
want the build to be marked as failed?
In the latest versions of pylint the exit code is a bitwise or of the
following: MSG_TYPES_STATUS = { 'I' : 0, # info 'C' : 16, # conventions
'R' : 8, # refactor 'W' : 4, # warning 'E' : 2, # error 'F' : 1 # fatal
} 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.
Regards,
R.
On Fri, May 22, 2015, at 01:13 PM, 岳星兆 wrote:
> Hi,
>
> I’m using pylint in buildbot, and I want to customize failure items.
>
> Now I think buildbot give failure result since pylint returns(exit)
> contains 1 or 2.
>
> So, I wonder how can I customize an error/warning to trigger failure.
> e.g, when pylint found an C0101, it exit 1 or 2.
>
> Thanks Froilan
> _________________________________________________
> code-quality mailing list code-quality at python.org
> https://mail.python.org/mailman/listinfo/code-quality
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/code-quality/attachments/20150522/c88aa0bd/attachment.html>
More information about the code-quality
mailing list