Configure Vhdl Analysis - VHDLTool/sonar-VHDLRC GitHub Wiki
In your SonarQube session, you can configure VHDL options at General or project level.
In Configuration > VHDL > VHDL RC
- You can set the top entity of your project
- You can set libraries and other option in the custom command field
Local variable
SRC="$HOME/projects"
External BuildPath.txt
include "/dir/BuildPath.txt"
Libraries Entry format:
( 'extern'|'local'|'default' ) ('recursive'|'nonrecursive') [ 'list' ] ( <library_id> | 'none' ) <path_prefix>
Example of external sources and their target libs
extern LIB "$SRC/lib/l1"
extern LIB2 "$SRC/lib2"
By default, extern declarations are recursive, use the nonrecursive keyword otherwise:
extern nonrecursive FOO "$SRC/foo"
External source files
extern list MYLIB "$SRC/list.txt"
External sources that are declared readonly will be cached on your local disk:
extern readonly SPW "$SRC/lib/spw"
Target library for sources inside your workspace:
local GAISLER "gaisler"
Default target library for local sources
you can also use the keyword NONE here to exclude sources that reside in no sub directory:
default none