当前位置:网站首页>利用sonar做代码检查
利用sonar做代码检查
2022-06-24 07:03:00 【一个不靠谱的程序员】
sonar介绍
Sonar 是一个用于代码质量管理的开放平台。通过插件机制,Sonar 可以集成不同的测试工具,代码分析工具,以及持续集成工具。与持续集成工具(例如 Hudson/Jenkins 等)不同,Sonar 并不是简单地把不同的代码检查工具结果(例如 FindBugs,PMD 等)直接显示在 Web 页面上,而是通过不同的插件对这些结果进行再加工处理,通过量化的方式度量代码质量的变化,从而可以方便地对不同规模和种类的工程进行代码质量管理。
在对其他工具的支持方面,Sonar 不仅提供了对 IDE 的支持,可以在 Eclipse和 IntelliJ IDEA 这些工具里联机查看结果;同时 Sonar 还对大量的持续集成工具提供了接口支持,可以很方便地在持续集成中使用 Sonar。
此外,Sonar 的插件还可以对 Java 以外的其他编程语言提供支持,对国际化以及报告文档化也有良好的支持。
sonar安装(docker里运行)
注意:先在msyql里创建一个sonar用户,并赋予该用户同名的数据库所有权限。把mysql地址替换掉。
第一次启动比较慢。耐心等待。
docker run -d --name sonarqube -p 9000:9000 -p 9092:9092 -e "SONARQUBE_JDBC_USERNAME=sonar" -e "SONARQUBE_JDBC_PASSWORD=sonar" -e "SONARQUBE_JDBC_URL=jdbc:mysql://mysqlip:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance&useSSL=false" sonarqube边栏推荐
- 数据库,查询本月借出书的数量,如果高于10本时,显示“本月借出书大于10本”,否则显示“本月借出书小于10本”
- [real estate opening online house selection, WiFi coverage temporary network] 500 people are connected to WiFi at the same time
- Common misconceptions in Tencent conference API - signature error_ code 200003
- MATLAB Camera Calibrator相机标定
- JS merge multiple objects and remove duplicates
- win11在cmder中使用vim查看内容的时候空白
- MAYA重新拓布
- WCF TCP protocol transmission
- Review SGI STL secondary space configurator (internal storage pool) | notes for personal use
- Paper notes: multi label learning dm2l
猜你喜欢

JUC personal simple notes

中国芯片独角兽公司

Synthesize video through ffmpeg according to m3u8 file of video on the network

JUC个人简单笔记

成为IEEE学生会员

MATLAB Camera Calibrator相机标定

WCF TCP protocol transmission

ZUCC_ Principles of compiling language and compilation_ Experiment 08 parsing LR parsing

Question 3 - MessageBox pop-up box, modify the default background color

12-- merge two ordered linked lists
随机推荐
饼状统计图,带有标注线,都可以自行设定其多种参数选项
Rescue system -- the application of read-write separation
Paper notes: multi label learning dm2l
常用日期格式符与Qt获取当前时间的办法
Getting started with ffmpeg
Three ways to uninstall Symantec Endpoint Protection Symantec
Shell basic operators -- relational operators
Tencent conference API - get rest API & webhook application docking information
5 minutes, excellent customer service chat handling skills
Use cpulimit to free up your CPU
jwt(json web token)
Introduction to NC machine tool programming [G-code]
JUC个人简单笔记
【力扣10天SQL入门】Day3
Several ways you can't move zero (sequel)
How to replace the web player easyplayerproactivex Key in OCX?
Question 3 - MessageBox pop-up box, modify the default background color
中国芯片独角兽公司
12-- merge two ordered linked lists
Markdown to realize text link jump