What are the main advantages of sonarlint compare to working with mypy+pylint

Hi
I had session today at work on sonarqube and sonarlint use in pycharm, and someone asked me what are the advantages and added value it gives compare to working locally with mypy+pylint in terms of static code analysis (as for security the advantage is clear).
I admit I’m still not sure it answer her question, and therefore, I would love to hear your thoughts on it

Hi Ariel and thanks for your question. Apologies for the end-of-year-holidays-induced delay.

I believe your question is more geared towards the analysis offered (let me know if you meant something else).

In summary Sonar’s Python analysis (regardless of which product you use and aside from security), detects bugs and code smells across popular Python libraries and key Python language features. For example, bugs in DateTime, Django and Data Science libraries like Pandas and more. You can see the full list here.

mypy only offers static type checking. pylint, while it has a variety of checkers, focuses more on code styling and Python language features. The mypy+pylint combination would leave gaps on critical issues and only support Python, Sonar of course offers support for 30+ languages if you’re using SonarQube IDE (formerly Sonarlint).

I look forward to your thoughts or any further questions.

Jean

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.