The Open edX project has a Jenkins job that does something similar by
using a custom Python script which runs pylint, parses the generated
report, and compares the number of reported issues against specified
upper and lower limits:
https://github.com/edx/edx-platform/blob/master/pavelib/quality.py#L166.
This is particularly useful when you start applying stricter rules to a
legacy codebase, and want to avoid new violations of them without
immediately needing to do a huge cleanup effort. You just need to keep
lowering the upper limit as the legacy violations gradually get fixed.
Jeremy
On 2018-10-16 06:27, Prashant Sabnekar wrote:
> Hi Friends,
>
> I want to integrate Pylint into my jenkins job such that the job should fail
> when the Pylint score is below say 8.
>
> I found many plugins which displays Pylint metrics but I could not found any
> plugin which returns true / false or some value based on my pylint score.
>
> Any idea how can this be done?
>
> Thanks,
> Prashant
> _______________________________________________
> code-quality mailing list
> code-quality@python.org
> https://mail.python.org/mailman/listinfo/code-quality
_______________________________________________
code-quality mailing list
code-quality@python.org
https://mail.python.org/mailman/listinfo/code-quality