Riverside-Software / sonar-openedge

CABL (Code Analyzer for ABL in SonarQube) - ABL ANTLR4 Parser
https://riverside-software.fr
GNU Lesser General Public License v3.0
63 stars 26 forks source link

Can Fast branch analysis be used with sonarqube-community-branch-plugin #1094

Closed ccecvb closed 11 months ago

ccecvb commented 11 months ago

Release 2.24 introduces Fast branch analysis https://github.com/Riverside-Software/sonar-openedge/releases/tag/V2.24.1.

Can this be used with https://github.com/mc1arke/sonarqube-community-branch-plugin.

If not, could it be adapted to also work for that plugin ?

As far as I can tell, onarqube-community-branch-plugin also requires -Dsonar.pullrequest.branch to be set. Is that the only requirement to activate the fast branch analysis ?

gquerret commented 11 months ago

CABL does a check against the SQ edition being used. You could remove the check and compile your own version of the plugin, but I can't guarantee anything.

A quick glance at the project shows that you have to enable a Java agent on the SonarQube runtime, so it probably works by modifying the bytecode at runtime to enable branch support. I really don't think that's a long term solution to work with branches.