大橙子网站建设,新征程启航

为企业提供网站建设、域名注册、服务器等服务

代码扫描工具

代码扫描工具
1. sonar
2.ali的stc平台用的是:findbugs 和 pmd

参考:

测试框架:使用SONAR分析代码质量

配置sonar、jenkins进行持续审查


1、Sonar介绍

Sonar是一个用于代码质量管理的开源平台,用于管理Java源代码的质量。通过插件机制,Sonar 可以集成不同的测试工具,代码分析工具,以及持续集成工具,比如pmd-cpd、checkstyle、findbugs、Jenkins。通过不同的插件对这些结果进行再加工处理,通过量化的方式度量代码质量的变化,从而可以方便地对不同规模和种类的工程进行代码质量管理。

长清网站制作公司哪家好,找成都创新互联!从网页设计、网站建设、微信开发、APP开发、响应式网站建设等网站项目制作,到程序开发,运营维护。成都创新互联于2013年创立到现在10年的时间,我们拥有了丰富的建站经验和运维经验,来保证我们的工作的顺利进行。专注于网站建设就选成都创新互联

同时 Sonar 还对大量的持续集成工具提供了接口支持,可以很方便地在持续集成中使用 Sonar。

此外,Sonar 的插件还可以对 Java 以外的其他编程语言提供支持,对国际化以及报告文档化也有良好的支持。


它主要的核心价值体现在如下几个方面:

    检查代码是否遵循编程标准:如命名规范,编写的规范等。
    检查设计存在的潜在缺陷:SonarQub e 通 过插 件 F indbugs、Checkstyl e 等 工具检测代码存在的缺陷。
    检测代码的重复代码量:SonarQub e 可 以展示项目中存在大量复制粘贴的代码。
    检测代码中注释的程度:源码注释过多或者太少都不好,影响程序的可读可理解性。
    检测代码中包、类之间的关系:分析类之间的关系是否合理,复杂度情况。

SonarQub e 平 台是 由 4 个 部分组成:

    SonarQube Server
    SonarQube Database
    SonarQube Plugins
    SonarQube Scanner

2、配置数据库

Apache Derby 是Sonar自带并且默认安装使用的数据库,此外Sonar对如下数据库提供支持:MySQL 5.x, Oracle 10g XE, Postgresql, MS SqlServer等,本文以mysql为例介绍如何配置数据库: 

1)创建数据库

在mysql中执行如下脚本创建数据库及mysql用户

$ ${SONAR_HOME}/war/build-war.sh

c. 启动Tomcat, 通过 http://localhost:8080/sonar 访问.

Tomcat安装配置参见:CenOS系统中安装Tomcat7并设置为自启动服务

4.启动服务
  

sudo /opt/sonarqube-6.2/bin/linux-x86-64/sonar.sh stop ## 停止服务  sudo /opt/sonarqube-6.2/bin/linux-x86-64/sonar.sh start ## 启动服务  sudo /opt/sonarqube-6.2/bin/linux-x86-64/sonar.sh restart ## 重启服务  sudo /opt/sonarqube-6.2/bin/linux-x86-64/sonar.sh console ## 控制台启动 sudo tail -f /opt/sonarqube-6.2/logs/sonar.log ## 查看日志

5、配置插件
浏览器访问 http://centos:9000/sonar,用预设的管理员账号(admin/admin)登陆;
在线安装:进入插件中心 (Administration / System / Update Center / Available Plugins) 找到所需的插件,点击右侧的 “Install” 开始安装;
代码扫描工具vPsY3Jei+XflK5thZJb2NJ/DBnQmPP59wHLlNOcX8OFQCAiuB172N9z2H3H+facIxvRayJwqaLsfAuKofOK5Jplk1q0Api6s5jvZRVFsUFAMBDPv3CAwAAQImRcgAAQDCRcgAAQDCRcgAAQDCRcgAAQDCRcgAAQDCRcgAAQDCRcgAAQDCRcgAAQDCRcgAAQDCRcgAAQDCRcgAAQDCRcgAAQDCRcgAAQDCRcgAAQDCRcgAAQDCRcgAAQDCRcgAAQDCRcgAAQDCRcgAAQDCRcgAAQDCRcgAAQDCRcgAAQDCRcgAAQDCRcgAAQDCRcgAAQDCRcgAAQDCRcgAAQDCRcgAAQDB5l3K6uroOHz588ODBjwHAQ4cPH6b6AsLJu5Tzpz/9qbOzM51OKwDgoc7OzkOHDlF9ASHkXco5ePAgdQQA76XT6Y8//pjqCwgh71LOxx9/7PfCAgipQaYcqi+gQpFyAAQfKQcIJ1IOgOAj5QDhRMoBEHykHCCcSDkAgo+UA4QTKQdA8JFygHAi5QAIPlIOEE6kHADBR8oBwomUAyD4SDlAOJFyAAQfKQcIJ1IOgOAj5QDhRMoBEHykHCCcSDkAgo+UA4QTKQdA8JFygHAi5QAIPlIOEE6kHADBR8oBwomUAyD4SDlAOJFyAAQfKQcIJ1IOEEyfdifmPLV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RXx6+4ov/88/tHjOi7+OL++vq+q6+OT5sWv+GG3tmz47ff3rtsWe9998UefDD20EOxxx7raWvrefHFntde696zp/uPf+w6eLDryBG/lzI/XX/+c9fBg91//GP3nj09r73W88ILPW1tscceiz30UOzBB3vvvbd32bL47bf3zp4dv+GG+LRpfVdf3T9+fN/FF/ePGNF//vl99fWJ6ur+kSP7x4/vmzYtfvPNvYsWxe6/P/bQQz1tbd2vvNL9zjtdn33m91ICOaQcAJVp//7uV17p2bw51tLSe9998YUL47Nm9U2e3H/55f3DhyfOOSdxzjn9w4f3X3553+TJ8Wg0vmBB7333xVpaejZv7m5v737rra5PPvF7GSpP1yefdL/1Vnd7e8/mzb0tLb333htfsCAejZrX/IgR/XV1fZMnx2fNii9cmFvzr7zSvX+/3wuBECHlAChrXQcO9Lz2WmzTptj998fnzu2bMqXvoosS55zTf8EF8Rtv7Js6NX7TTfHFi2P33Rd76KGerVtpUfBd12efde/d2/3yyz1bt8Yeeih3331aK1rvjTf2n39+4pxz+saM6ZsyJX7rrbH77489/njPa691HTjgd8ERQKQcAGWh7+DBno6O2JNPxpqb4/PmxadN67vkkkR1deK88/rGjYs3NMQXLIg9+GDPli09O3cSYipa12ef9bzxRs+WLbE1a+ILFsQbGvrGjUtEIonq6r5LL41PmxafPz/W3BzbvLmno4MmNwwGKQeA17o6O3t27Ii1tvYuW9Z7221948YlzjsvUV3dd8kl8WnT4vPmxZqbY08+2dPR0XXwoN+FhXe6Dh7s+cMfYk8+GVu9Oj5vXp8x6cZuu6132bJYa2vPG2/4XVJUDFIOgJLr2rkz9thjvXfdFb/uur6LLkp8//t9F18cv/763rvv7n7ySa5WwF7XgQPdr77avXlz7913x6+/vm/MmOQZZ/RddFH8uut677ortmlT165dfpcRZYqUA6D4enbvjm3cGJ8/v2/ChMQ558SnT49Pn957552xRx/t4YSEYujZuTP26KO9d94Zb2iINzQkzjmnb8KE+O23xzZu7N692+/SoVyQcgAUQdenn/Zs2RJrauq78srEj37UP3p0fObM2Or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UyGk2MHZs444zEmDHJGTNSK1emtm1L79o1cNjdz0QglAYOH07v3Jnati21cmVyxozERRclfvCDxNixyWg0tWpV+pln0vvd/2os/EHKKd+XZ6vILywjukuccqwG/vjH9FNPpe69N7FoUfKKKxI1NYlzzklcfHHy2mtTt9+e+vWv0089NfDmmwNHjnhZKvhr4MiR9J496aeeSj34YOr225PTpiUuvjhxzjmJmprkFVck77gjde+96aeeGti3z++SIm+knPJ9ebaK/MIyotvzlGM10Ns78N576d//PtXSklqyJDljRqKuLnHeeYnq6sTYscnp01OLFqV++9v0M88M7N070N3tb2kxGAPd3QNvv51+5pnUb36TWrQo2dCQGDs2UV2dOO+8RF1dcsaM1NKlqZaW9PPPD7z33kDc6UfvUQlIOeX78mwV+YVlRHcZpByZge7ugb170888k/rtb1OLFiWnT9fOiMmbbkpOnZq8+ebUkiWp5ub0ww+nn302/cYbA/v3E4N8NNDdPbB/f3rHjvSzz6YffjjV3JxasiR5883JqVOTs2YlIpFEdXXissuS06enFi9O/fa36WefHdi7N9tLHcFEyinfl2eryC+BX8ZX394f+GUcvLJNOTIDR46k33or/cIL6U2bUmvXpu68M3nLLcmGhuTPfpa48MJEdXXizDMTP/lJYty45KRJyVmzUosWpVatSm/cmN62Ld3RMfD++1wOK8DAkSMD77+f7uhIP/106n/+J7VqVWrRouSsWclJkxLjxiV+8pPEmWcmqqsTo0YlJ0xINjQkb7kldeedqbVr05s2pV94If3WW6z2EOrpTwU/5Xz7v+/3Pa+QcoSCvYxv7z+4YOMLFy/8H78LUu5mPL7vnvaDfleG/397d9sUxZXoATwfIR/lvvBNcmtr3d2zW50Ly467s5Mge2EiKxqfrglEXZksi6zWUjFcSF2SrjIKKQvU5Tq4g+L6gCZmQuAS43hFRbwyrjoYNvgAM1DDY98XPQ/nnD7d08MM0zPN/1f9gunpPn36zNj955zTmE3Lc3PLExPLIyNLAwNL588vnjix+MknCwcPLrz//sLmzfNO5zwhC2+/PU/IfHHxvMu1UFGxsHXrwrvvLuzfv9D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28eLSuv7BgCQicJNOZkzO+xhLO3nVNYstBTwsvNvEABAD1JOhoXg1m0WWgp4CDkAsMqQcqwvY21ASwEHuRcAVh2STka7439cNgMtBRxuEjUAwCpZyykHAAAA7AwpBwAAAOzp/wFbpn2wLdjFIgAAAABJRU5ErkJgggA=">

离线安装:在线安装容易失败,可尝试离线安装,下载插件 jar 文件至插件目录下,并重启 SonarQube 生效;
插件 jar 文件的下载地址,可以到在线安装页找到插件的 Homepage 再找 releases,如下:
- Git: 已自带安装;
- SVN: 已自带安装;
- Java: 已自带安装,Java 源代码解析,计算指标等;
- JavaScript: 已自带安装;
- Chinese Pack:SonarQube 页面汉化;
- Findbugs
- Checkstyle
- PMD
- SonarGraph

插件的离线安装脚本如下:


  1. cd /opt/sonarqube-6.2/extensions/plugins/
  2. sudo rm -rf sonar-csharp-plugin-*.jar
  3. sudo wget https://github.com/SonarQubeCommunity/sonar-l10n-zh/releases/download/sonar-l10n-zh-plugin-1.13/sonar-l10n-zh-plugin-1.13.jar
  4. sudo wget https://github.com/SonarQubeCommunity/sonar-findbugs/releases/download/3.4.4/sonar-findbugs-plugin-3.4.4.jar
  5. sudo wget https://github.com/SonarQubeCommunity/sonar-checkstyle/releases/download/2.4/sonar-checkstyle-plugin-2.4.jar
  6. sudo wget https://github.com/SonarQubeCommunity/sonar-pmd/releases/download/2.6/sonar-pmd-plugin-2.6.jar
  7. sudo wget https://github.com/SonarQubeCommunity/sonar-sonargraph/releases/download/sonar-sonargraph-plugin-3.5/sonar-sonargraph-plugin-3.5.jar
  8. sudo /opt/sonarqube-6.2/bin/linux-x86-64/sonar.sh restart ## 重启服务
  9. ## 注意:不完整的 wget 下载文件必须删掉,否则会导致 SonarQube 启动失败!


a)插件介绍

Sonar支持多种插件,将下载后的插件上传到${SONAR_HOME}extensions\plugins目录下,重新启动sonar。

sonar默认集成了Java Ecosystem插件,该插件是一组插件的合集

  • Java [sonar-java-plugin]:java源代码解析,计算指标等
  • Squid [sonar-squid-java-plugin]:检查违反Sonar定义规则的代码
  • Checkstyle [sonar-checkstyle-plugin]:使用CheckStyle检查违反统一代码编写风格的代码
  • FindBugs [sonar-findbugs-plugin]:使用FindBugs检查违反规则的缺陷代码
  • PMD [sonar-pmd-plugin]:使用pmd检查违反规则的代码
  • Surefire [sonar-surefire-plugin]:使用Surefire执行单元测试
  • Cobertura [sonar-cobertura-plugin]:使用Cobertura获取代码覆盖率
  • JaCoCo [sonar-jacoco-plugin]:使用JaCOCO获取代码覆盖率

生成认证令牌(Token)

外部系统(比如 Jenkins)访问 SonarQube 时要用到;
进入:Administration(配置) / Security(权限) / User(用户),找到用户 admin,点击 “Tokens” 一列;
弹出界面里:输入 TokenName=”admin”, 点击 “Generate”, 生成 “8687b74188c446f2e02ec6eb5ee9d80b88048406”

部署至 Tomcat

上面是 Sonar 以独立 server 方式运行,也可以改为集成至 Tomcat:

## 注意修改 $TOMCAT_HOME/bin/catalina.sh 初始内存 1G+ sudo /opt/sonarqube-6.2/war/build-war.sh ## 将sonar达成一个war包 sudo cp /opt/sonarqube-6.2/war/sonar.war %TOMCAT_BASE/web-apps/


二、与jenkins集成

1、通过Maven进行集成

修改maven的主配置文件(${MAVEN_HOME}/conf/settings.xml文件或者 ~/.m2/settings.xml文件),在其中增加访问Sonar数据库及Sonar服务地址,添加如下配置:




  1. sonar



  2.     jdbc:mysql://localhost:3306/sonar

  3.     com.mysql.jdbc.Driver

  4.     sonar

  5.     sonar

  6.     http://localhost:9000







  7.   sonar


此处注意sonar.host.url地址应根据sonar部署情况修改

同样,为了避免内存溢出,推荐增加内存堆栈的大小。设置MAVEN_OPTS环境变量:

set MAVEN_OPTS=”-Xmx512m -XX:MaxPermSize=256m”  

使用Sonar

a. 运行Sonar服务器;

b. 通过 mvn sonar:sonar 将代码注入到Sonar中进行分析处理,并将处理结果以XML的形式保存在数据库中;

c. 通过浏览器访问,显示分析结果;

d. 持续运行Maven构建,会迭代显示分析结果;

e. 可以显式指定sonar插件的版本,如下:



  1.             
  2.                 
  3.                     
  4.                         org.codehaus.sonar
  5.                         sonar-maven-plugin
  6.                         3.5.1
  7.                     
  8.                 
  9.             
  10.         

f. 可以显式的将sonar绑定到Maven生命周期中,如下:



  1.             org.codehaus.sonar
  2.             sonar-maven-plugin
  3.             3.5.1
  4.             
  5.                 
  6.                     sonar
  7.                     site
  8.                     
  9.                     sonar
  10.                     
  11.                 
  12.             
  13.       

此时,指定Maven的site声明周期时,则会自动调用sonar.sonar 命令.

2、直接与Jenkins集成

在jenkins的插件管理中选择安装SonarQube Plugin,该插件可以使项目每次构建都调用sonar进行代码度量。

安装完毕后,进入:系统管理 / 系统设置 / SonarQube servers, 点击 “Add SonarQube” 按钮:
- Name: SonarQube-6.2
- Server URL: http://centos:9000/sonar
- Server version: 5.3 or higher
- Server authentication token: 8687b74188c446f2e02ec6eb5ee9d80b88048406(前面 SonarQube 生成的)
Jenkins 会把构建结果通过 URL和认证令牌发送给 SonarQube

http://dzwzjz.com/article/geeigh.html
在线咨询
服务热线
服务热线:028-86922220
TOP