In order to check code quality of canton-estore and don’t push to Bleum Hydra CQ every time , please install the Sonar server in your local machine as follows:

 

 

(1)    Copy settings.xml from the p_w_upload and replace the old one in /.m2/settings.xml

(2)    Copy the Sonar server from \\192.168.0.238\Canton\Software\sonar-2.13.1.zip and paste to your local disk.

(3)    Configure the environment as follows:

 


安装Sonar 静态代码检查工具_第1张图片

 

(4)    Go to %SONAR_HOME%/ bin/windows-x86-32 and run the script named  StartSonar.bat until you see the following output.

 

安装Sonar 静态代码检查工具_第2张图片

(5)    Go to http://localhost:9000  ,the account and password are both “admin” to see whether you have installed successfully.

 

安装Sonar 静态代码检查工具_第3张图片

(6)    Create a Maven configuration as follows:

 

安装Sonar 静态代码检查工具_第4张图片

(7)    Run it  ,then you will see the analyzed report at  localhost:9000

 

安装Sonar 静态代码检查工具_第5张图片