Search code examples
pythonhtmlreportgitlab-cipylint

How to generate an html report using pylint 1.8.2 to publish in gitlab-ci pages?


I have a django project in gitlab. In one of my CI pipelines, I use pylint to generate a badge with the given score. Also, pylint generate an issues report in txt format. Is there a way to generate this report in html to be publish as an artifact?


Solution

  • Unfortunately, as of pylint-1.7 the html output feature has been removed.

    https://docs.pylint.org/en/1.8/whatsnew/1.7.html#removed-changes

    IMO this is bad, because it prevents users from upgrading to 1.8 unless they want to write their own html page generation code. I'd like to see that feature restored, or made available in some other form (something that translates the json into html similarly to what was previously generated.)

    Unless that happens we're stuck with the older version for the forseable future.