I am trying to cut down the build time that Sonar takes, and decided to run pylint before sonar-scanner on a few directories (as it seems that the ignore options in pylint are finicky).
However when I run the sonar scanner with the
sonar.python.pylint.reportPath=pylint-report.txt flag, it looks to still run pylint as it take roughly the same amount as time as before. From the docs page this doesn’t look like the default behaviour, and I was wondering if I was doing something incorrectly or if pylint is now being run twice, once by me and once by sonar scanner?
I’m running pylint in the way that sonar suggests in the docs, with the msg-template format, and sonar logs:
INFO: Sensor Python Squid Sensor [python]
INFO: Python test coverage
INFO: Parsing report ‘progs/coverage.xml’
INFO: Sensor Python Squid Sensor [python] (done) | time=8085ms
INFO: Sensor PylintSensor [python]
WARN: Pylint rule ‘C0303’ is unknown in Sonar
INFO: Sensor PylintSensor [python] (done) | time=421818ms
INFO: Sensor PythonXUnitSensor [python]
INFO: Sensor PythonXUnitSensor [python] (done) | time=203ms