Flake8 rules for SonarPython

1,129 views
Skip to first unread message

nguyen.v...@gmail.com

unread,
Mar 31, 2017, 9:36:50 AM3/31/17
to SonarQube
Hey all, 

Is there a PR policy for adding rules to the SonarPython plugin? Also, is there a style guide (I'm not a native Java dev)?

Some background: I'd really like to start leveraging SonarQube for some Python repositories, but I'm using Flake8 for linting (instead of Pylint) currently and an assorted suite of plugin modules that perform various other checks, e.g. flake8-mutable. Since going through and redefining these rules via XPath isn't super ideal I've gone ahead and forked the SonarPython plugin to add some support for Flake8.


Freddy Mallet

unread,
Apr 3, 2017, 2:45:50 AM4/3/17
to nguyen.v...@gmail.com, SonarQube
Thanks Nguyen for your will to contribute to SonarPython. You can find the SonarSource conventions here : https://docs.sonarqube.org/display/DEV/Contributing

Nevertheless, as mentioned in several blog entries for SonarJava (here) and SonarJS (here), we're working hard to have SonarQube not depending anymore upon any external rule engine. SonarPython is the last one still depending upon Pylint but sooner or later we'll also work to reimplement most valuable Pylint rules. 

So nothing prevents you from forking/extending SonarPython to support Flake8 but I just wanted to make it clear that chance to have this PR integrated into the master is really low.

Thanks for your understanding
Freddy

--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/aa21a818-e08a-471c-9ea1-7bbe8c846521%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Freddy MALLET | SonarSource

Eduard-Cristian Stefan

unread,
Apr 3, 2017, 2:53:09 AM4/3/17
to SonarQube, nguyen.v...@gmail.com
Hi,

From my experience Python-related tasks are having a very low priority, so if you need the latest bug fixes/improvements of flake8/pylint/etc you will have to wait some months to have them implemented in Sonar.

Kind regards,
  Eduard
Reply all
Reply to author
Forward
0 new messages