当前位置:网站首页>Basic use of sonarqube platform
Basic use of sonarqube platform
2022-06-11 03:06:00 【Xiao Xiao 0523】
1、 perform sonar The way :
jenkins Build time , perform sonar Code checking
jenkins Configuration see :T-GKPT-Server( Our company jenkins Platform projects , As follows )
Analysis properties The contents are as follows (java Code ):
sonar.projectKey=${JOB_NAME}
sonar.projectName=${JOB_NAME}
sonar.projectVersion=1.0
sonar.sources=.
sonar.java.binaries=.
sonar.sourceEncoding=UTF-8
sonar.language=java
sonar.scm.disabled=true
sonar.java.source=1.8Below is jenkins Data parsed during package operation :
Analysis properties The contents are as follows (JavaScript Code ):
sonar.projectKey=${JOB_NAME}
sonar.projectName=${JOB_NAME}
sonar.projectVersion=1.0
sonar.sources=.
sonar.projectBaseDir=src
sonar.sourceEncoding=UTF-8
sonar.language=jsBelow is jenkins Data parsed during package operation :
2、jenkins And sonar relation
After execution sonar The inspection results are automatically displayed in sonarqube In the platform ( This platform built by our company )
jenkins The configuration is as follows :
1、configure system【 To configure sonarqube Platform address 】
2、 Global Tool Configuration
1) To configure MSbuild
2) To configure SonarScanner for MSBuild
3) SonarQube Scanner
3、Manage Nodes and Clouds
1) Set up master or slave node ( Servers that need to be packaged )
2) On the packaged server node , install sonar-scanner
a)windows Install the green version of , Unzip directly into a folder
b) Modify the configuration file 【/conf/sonar-runner.properties】, The contents are as follows :
#Configure here general information about the environment, such as SonarQube server connection details for example
#No information about specific project should appear here#----- Default SonarQube server
sonar.host.url=http://172.17.2.10:9000/sonarqube#----- Default source code encoding
sonar.sourceEncoding=UTF-8c) Set the environment variable ( It may be a non essential step , Not verified )
3、 Sign in sonarqube Platform and view the inspection results

Focus on content :
1、bugs And loopholes : Generally, you can pay attention to these two items , Don't pay attention to the rest
2、 When bugs Or the vulnerability is not 0 when , Click on the number , Enter the specific content
For example, click the number above the vulnerability , Enter the vulnerability interface :
The severity is blocking and severe , Generally, it needs to be handled ;( Whether to solve the problem specifically , To what extent , Ask the project manager )
3、
4、 Quality configuration - Configure check rules
Different kinds of code , Configure different rules

边栏推荐
- Android WiFi hide SSID configuration method
- CPT 102_ LEC 13-14
- MySQL is required to sort in ascending order greater than or equal to the current time, and then in descending order less than the current time
- ORA-00392 ORA-00312 错误处理
- 马志强:语音识别技术研究进展和应用落地分享丨RTC Dev Meetup
- How to add cookie pop-up window in WordPress website (without plug-in)
- List filtering, sorting, verification and other processing methods
- WordPress article directory plug-in luckywp table of contents setup tutorial
- RS232/RS485转4G DTU 上传基于Modbus协议的温湿度传感器数据到远程TCP服务器
- 最长递增子序列
猜你喜欢

cv. Matchtemplate image model matching opencv

Niuke: two numbers that only appear once in the array

怎样简洁明了地说清楚产品需求?

2022年6月中国数据库排行榜:TiDB卷土重来摘桂冠,达梦蛰伏五月夺探花

CocosCreator原生二次开发的正确姿势

Google Gmail mailbox marks all unread messages as read at once

TCP/IP

Error in Solr access: error initializing queryelevationcomponent

Chapter VII introduction to common protocols (1)

How to state clearly and concisely the product requirements?
随机推荐
巴歇尔槽流量计远程采集物联网关在明渠流量监测的应用
2022年熔化焊接与热切割操作证考试题库及答案
VMware虚拟机IP,网关设置。虚拟机ping不通外网
The new colleague asked me what "where 1=1" means???
How to handle error code 30204-44 when installing office 2016 in win10?
C语言数组与指针练习题
B_QuRT_User_Guide(19)
B_QuRT_User_Guide(20)
AOSP ~ WiFi on by default + GPS off by default + Bluetooth off by default + rotary screen off
通过程序启动QQ,实现自动登录.
HQChart钉钉小程序教程1-创建K线图
pip 安装 qt5 。
关于玩家身上有个普通Set并发安全的讨论
B_ QuRT_ User_ Guide(19)
intXX_ T and int_ fastXX_ T what is the difference- What is the difference between intXX_ t and int_ fastXX_ t?
B_QuRT_User_Guide(18)
Problems with JDBC tool classes
Niuke: two numbers that only appear once in the array
Go language advantages and learning Roadmap
PIP installation Qt5.











