<p>Jenkins accepts <a href="https://plugins.jenkins.io/junit/" rel="nofollow noreferrer">JUnit-formatted test results with the JUnit plugin</a>, so you could try <a href="https://pypi.org/project/pylint-junit/" rel="nofollow noreferrer">pylint-junit</a> to output JUnit-formatted results (I have not tried this myself).</p>
<p>Also it looks like <a href="https://stackoverflow.com/questions/41875412/use-pylint-on-jenkins-with-warnings-plugin-and-pipleine">a very similar question was asked and answered over on StackOverflow</a>.</p>

CC BY-SA 4.0
2020-11-30T09:28:50.957Z
I ran it. Any idea why using this plugin doesn't print the score like in the `log`: `Your code has been rated at 9.79/10`
arielma
CC BY-SA 4.0
2022-04-13T08:57:56.513Z
Because you use XML format output. Thus the plain text `Your code...` makes XML malformed.
Maxim Suslov
CC BY-SA 4.0
2020-11-29T21:22:19.970Z
2020-11-29T21:22:19.970Z
jayhendren
<p>I have Pipeline which run Jenkinsfile. one of the stage is pylint:</p>
<pre><code>python -m pylint --rcfile=.pylintrc --exit-zero ${MODULE} &gt; ${WORKSPACE}/testreport/pylint.log
</code></pre>
<p>I know there was used to be violations plugin which is now deprecated. is there any alternative?</p>

<jenkins-plugins><python>
Is there any Jenkins plugin for pylint results?
arielma
# Is there any Jenkins plugin for pylint results?

(Asked by: username_0 on 2020-11-29)

I have Pipeline which run Jenkinsfile. one of the stage is pylint:
python -m pylint --rcfile=.pylintrc --exit-zero ${MODULE} > ${WORKSPACE}/testreport/pylint.log

I know there was used to be violations plugin which is now deprecated. is there any alternative?

**Tags:** jenkins-plugins, python


---

## 1 answers

### Answer by username_1 on 2020-11-29. Score: 3 | Accepted answer

Jenkins accepts [JUnit-formatted test results with the JUnit plugin](https://plugins.jenkins.io/junit/), so you could try [pylint-junit](https://pypi.org/project/pylint-junit/) to output JUnit-formatted results (I have not tried this myself).

Also it looks like [a very similar question was asked and answered over on StackOverflow](https://stackoverflow.com/questions/41875412/use-pylint-on-jenkins-with-warnings-plugin-and-pipleine).

> **Comments:**
> **username_0**: I ran it. Any idea why using this plugin doesn't print the score like in the `log`: `Your code has been rated at 9.79/10`  
> **username_2**: Because you use XML format output. Thus the plain text `Your code...` makes XML malformed.  

---

