I want to use the Delphi plugin for SonarQube, but apparantly it is depreciated. Hence, I would like to install an old version of SonarQube to use it. My 2 questions:
- which version of SonarQube should I use?
- where can I donwload the latest version of the Delphi plugin?
Thanks a lot and regards,
Pieter
We tested and is running the current version of Sonar:
Compatible with SonarQube 4.5.x and SonarQube 5.1.2
https://github.com/fabriciocolombo/sonar-delphi
Release: https://github.com/fabriciocolombo/sonar-delphi/releases
JAR: https://github.com/fabriciocolombo/sonar-delphi/releases/download/0.3.3-SNAPSHOT/sonar-delphi-plugin-0.3.3-SNAPSHOT.jar
PS: Translated from Portuguese to English by Google Translate.
take a look here:
https://github.com/darianmiller/devmachine/wiki/Delphi-Example-Project-for-Sonar
I'm using delphi plugin 0.2 with sonar 3.5.1
Related
folks!
I have 2 separate servers on Linux for Jenkins and Sonarqube. The code is written in Java 1.8 and can be compiled using Jenkins. Everything works fine.
It fails at the SonarQube step because our SonarQube uses Java 11, and it fails with this error.
ERROR: Error during SonarScanner execution java.lang.UnsupportedClassVersionError: org/sonar/batch/bootstrapper/EnvironmentInformation has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
How can I fix this?
You have to run the sonar scanner with at least Java 11, no matter what version of Java your application supports.
Two years ago I had a similar issue. I don't know if your app and sonarqube should run on the same machine (as it was in my case).
If yes, just install both versions of java and set the path of Java 11 to SonarQube settings.
According to sonarqube community, you should do the following:
Edit conf\wrapper.conf, specifically the wrapper.java.command to following:
wrapper.java.command=C:\Program Files\Java\open jdk-11.0.2\bin\java
#wrapper.java.command=java
I want configure SonarQube with Xcode project for only Objective-C. I am not able to find working JAR for Objective-C.
SonarSource provides SonarCFamily for Objective-C is a plugin. It is available in Developer and Enterprise editions.
There is also a free alternative on GitHub: https://github.com/Backelite/sonar-objective-c. The latest version (0.6.2) is compatible with SonarQube 6.7.
I am using ant script for Sonar code scan .Currently with 'sonar-ant-task-2.2.jar' i am able to execute scan for Java 7.
With Java 8 which version of sonar-ant-task need to be used ?
Thanks & Regards
Ganesh Rao
Read point #2 of Prerequisites at documentation. Use At least the minimal version of Java supported by your SonarQube server is in use.
See this, any JRE v8 will do.
If you have a look at the documentation of the latest scanner you will find this Prerequisites section:
SonarQube is already installed
At least the minimal version of Java supported by your SonarQube server is in use
The language plugins for each of the languages you wish to analyze are installed
You have read Analyzing Code Source.
Ant 1.7.1 or higher
So using Java 8 is not a problem if you are using SonarQube 5.6+ and using the latest scanner will resolve some issues (see the changelog).
I am using Jenkins for CI and added the sonar plugins for Jenkins. After sonar scan Technical Debt shown Zero.
But actually its is not zero previously was using latest version of sonar there it was showing Technical Debt but after downgrading it is not shown .(Duplicate code ,Lines of code ,complexity are shown)
Below are the version of sonar used
Before Downgrading following version are used (Working fine)
sonar scanner 2.5.1 , Sonar Plugin 2.3 , SonarQube 5.4 , Jenkins version. 1.651
After Downgrading (Technical Debt not shown)
Sonar scanner 2.5, sonar plugin 2.1 , SonarQube 4.5 , Jenkins version 1.651
How this problem can be solved ?
Thanks
Ganesh
I found the reason for this , posting here so that it can be helpful for others.
In latest version of SonarQube 5.4 there is no need to refer to 'binaries' ,from 'src' only Technical Debt will be calculated.But in case of older version 4.5 need to refer binaries also for sonar scan(Because find-bugs requires binaries in new one find bugs are integrated to sonar way profile)
I had the same problem, I missed deleting data/es folder during upgrade process. After deleting the data/es folder and restarting the sonarqube server solved my problem. More information is here
I downloaded the latest version of Maven from their site and am using it in Eclipse. But it seems my maven-compiler-plugin is out of date ie. version 3.1 while according to this page the most recent version is 3.3. First of all if I am using the latest version of maven why do I have to use an outdated plugin ? Secondly why is it out of date ? I looked up the Super-POM and nothing about the compiler plugin was referenced there.