Install the Scanner - VHDLTool/sonar-VHDLRC GitHub Wiki
-> But I already have a sonar-scanner!
- Expand the downloaded rc-scanner into the directory of your choice except
Programmes x86orProgrammes Files. We'll refer to it as<install_directory>in the next steps. - Update the global settings to point to your SonarQube server by editing
<install_directory>/conf/sonar-scanner.properties:
#----- Default SonarQube server
#sonar.host.url=http://localhost:9000- Add the
<install_directory>/bindirectory to your path. - You can verify your installation by opening a new shell and executing the command
sonar-scanner -h(on Windows platform the command is sonar-scanner.bat -h) . You should get output like this:
usage: sonar-scanner [options]
Options:
-D,--define <arg> Define property
-h,--help Display help information
-v,--version Display version information
-X,--debug Produce execution debug outputYou are set for your first analysis !
It is not a problem, your can replace it because rc-scanner contains a sonar-scanner.
Don't forget to add the <install_directory>/bin directory to your path,
and you can still use
sonar-scannerfor non VHDL projects like java.
You can then install Yosys and install Gcov/GHDL.
Yosys framework and GHDL enable advanced rules checking and Gcov GHDL provides code coverage of simulation test bench.