Install The Scanner - VHDLTool/sonar-VHDLRC GitHub Wiki

Install the scanner

-> But I already have a sonar-scanner!

  1. Expand the downloaded rc-scanner into the directory of your choice except Programmes x86 or Programmes Files. We'll refer to it as <install_directory> in the next steps.
  2. 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
  1. Add the <install_directory>/bin directory to your path.
  2. 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 output

You are set for your first analysis !

I already have a sonar-scanner on my computer

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-scanner

for non VHDL projects like java.

Advanced usages

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.

⚠️ **GitHub.com Fallback** ⚠️