当前位置:网站首页>利用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边栏推荐
- OpenCV to realize the basic transformation of image
- Easydss anonymous live channel data volume instability optimization scheme sharing
- Understanding of the concept of "quality"
- 将mysql的数据库导出xxx.sql,将xxx.sql文件导入到服务器的mysql中。项目部署。
- pyQt 中 QMenu 响应
- MAYA重新拓布
- 05 Ubuntu installing mysql8
- Three categories of financial assets under the new standards: AMC, fvoci and FVTPL
- Take my brother to do the project. It's cold
- Three ways to uninstall Symantec Endpoint Protection Symantec
猜你喜欢

OpenCV to realize the basic transformation of image

2021-03-04 comp9021 class 6 notes
![[micro services ~nacos] Nacos service providers and service consumers](/img/b7/47ecd6979ccfeb270261681d6130be.png)
[micro services ~nacos] Nacos service providers and service consumers

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

2022 tea artist (intermediate) work license question bank and online simulation examination

Pat 1157: school anniversary

JUC个人简单笔记

ZUCC_ Principles of compiling language and compilation_ Experiment 04 language and grammar

Permission model DAC ACL RBAC ABAC

ZUCC_ Principles of compiling language and compilation_ Experiment 03 getting started with compiler
随机推荐
JS merge multiple objects and remove duplicates
Catégorie de prêt 5
[untitled]
Battle history between redis and me under billion level traffic
(pkcs1) RSA public private key PEM file parsing
Micro build low code online "quick registration applet" capability
新准则金融资产三分类:AMC、FVOCI和FVTPL
Common date formatter and QT method for obtaining current time
Rust procedure macro simply imitates Lombok function
【力扣10天SQL入门】Day2
Ordinary token
Scénarios d'utilisation de la promesse
Three categories of financial assets under the new standards: AMC, fvoci and FVTPL
[micro services ~nacos] Nacos service providers and service consumers
相机投影矩阵计算
Question bank and simulation examination for operation certificate of refrigeration and air conditioning equipment in 2022
Matlab求解线性方程组Ax=b
[acnoi2022] I have done it, but I can't
win11在cmder中使用vim查看内容的时候空白
jwt(json web token)