Integrate SonarQube with your AI agent, scan for secrets and dependency risks, and explore and manage issues—all from the command line.
Start using SonarQube CLI
I’m using SonarQube version 9.7.1 and sonar scanner version 4.7.0
I’ve configured the property sonar.python.flake8.reportPaths=output_flake.txt and generate flake8 output using
flake8 --output-file=output_flake8.txt ./
The output is ignored since I don’t have any difference in issues on SonarQube with or without it. output_flake.txt is correct and contains few errors.
In the output INFO I got
INFO: Sensor Import of Flake8 issues [python]
INFO: Sensor Import of Flake8 issues [python] (done) | time=1ms
I tried the same using pylint (and also bandit) and it works fine.
Could you go to your project’s list of background tasks ([homepage] → Project Settings → Background Tasks) and check the scanner context ([task row] → [cog menu] → Show Scanner Context) to make sure that sonar.python.flake8.reportPaths is actually in the list of parameters the scanner received?