0

From this answer, I understand that SonarLint lives in the IDE. And I have installed it as well in my PyCharm, but I have been asked to install SonarQube on PyCharm. On the python interpreter (in PyCharm), I'm seeing packages like, sonarqube-py, sonarqube_api, python-sonarqube-api, opn-sonarqibe-api. I wonder what are these? I wanted to ask if it's possible to install SQ on PyCharm. I have tried google search but I think there are not many results. If it's not possible then what will I have to do to run SonarQube?

ramn_k27
  • 21
  • 6

1 Answers1

1

SonarQube is a separate application, and SonarLint is a plugin for IDE that needs to connect to SonarQube. So I don't think installing SonarQube in your IDE makes sense. But in your SonarLint configuration in PyCharm you'll need to provide the SonarQube URL.

  • when i write a program in PyCharm, i right click, and i get an option: 'Analyze with SonarLint' and it seems to point errors/suggestions for my code. can u pls explain where do we need to provide the SonarQube URL (and why)? – ramn_k27 Sep 15 '22 at 02:40
  • 1
    I guess there might be default embedded coding rules in the plugin. But I think you'll only get default behaviors and will be limited in terms of customization. But if you plan to scan your project in a CI/CD process, you'll need anyway a SonarQube instance :) – Cédric Teyton Sep 15 '22 at 08:44