2分钟学会sonar安装使用

Wesley13
• 阅读 484

1:下载并解压SonarQube(http://www.sonarqube.org/downloads/)

2:启动SonarQube  Server

3:下载并解压SonarQube Scanner(http://docs.sonarqube.org/display/SONAR/Installing+and+Configuring+SonarQube+Scanner)用来扫描项目使用,并配置环境变量 例如:path=..\sonar-runner-2.4\bin

4:找一个项目工程,maven、ant或者其它工程。配置sonar-project.properties,具体配置如下:

# Required metadata

sonar.projectKey=word-set(工程名称)

sonar.projectName=word-set(工程名称)
sonar.projectVersion=1.1

# Comma-separated paths to directories with sources (required)

sonar.sources=src

sonar.binaries=target

# Language

sonar.language=java

# Encoding of the source files

sonar.sourceEncoding=UTF-8

5:cd命令行进入工程

执行sonar-runner

6:浏览器下执行 http://localhost:9000

点赞
收藏
评论区
推荐文章
blmius blmius
2年前
MySQL:[Err] 1292 - Incorrect datetime value: ‘0000-00-00 00:00:00‘ for column ‘CREATE_TIME‘ at row 1
文章目录问题用navicat导入数据时,报错:原因这是因为当前的MySQL不支持datetime为0的情况。解决修改sql\mode:sql\mode:SQLMode定义了MySQL应支持的SQL语法、数据校验等,这样可以更容易地在不同的环境中使用MySQL。全局s
Jacquelyn38 Jacquelyn38
2年前
2020年前端实用代码段,为你的工作保驾护航
有空的时候,自己总结了几个代码段,在开发中也经常使用,谢谢。1、使用解构获取json数据let jsonData  id: 1,status: "OK",data: 'a', 'b';let  id, status, data: number   jsonData;console.log(id, status, number )
Wesley13 Wesley13
2年前
VSCode 配置 Sonar Lint
1、安装SonarQube2、在安装了SonarQube之后,使用CtrlP打开VSCode命令搜索功能,输入Sonar,搜索结果如下:!(https://oscimg.oschina.net/oscnet/8963097362dd9e8fca1eb30c565dec7a068.png)3、sonar
Stella981 Stella981
2年前
AndroidStudio封装SDK的那些事
<divclass"markdown\_views"<!flowchart箭头图标勿删<svgxmlns"http://www.w3.org/2000/svg"style"display:none;"<pathstrokelinecap"round"d"M5,00,2.55,5z"id"raphael
Wesley13 Wesley13
2年前
4cast
4castpackageloadcsv.KumarAwanish发布:2020122117:43:04.501348作者:KumarAwanish作者邮箱:awanish00@gmail.com首页:
Stella981 Stella981
2年前
Android蓝牙连接汽车OBD设备
//设备连接public class BluetoothConnect implements Runnable {    private static final UUID CONNECT_UUID  UUID.fromString("0000110100001000800000805F9B34FB");
Stella981 Stella981
2年前
Django中Admin中的一些参数配置
设置在列表中显示的字段,id为django模型默认的主键list_display('id','name','sex','profession','email','qq','phone','status','create_time')设置在列表可编辑字段list_editable
Wesley13 Wesley13
2年前
MySQL部分从库上面因为大量的临时表tmp_table造成慢查询
背景描述Time:20190124T00:08:14.70572408:00User@Host:@Id:Schema:sentrymetaLast_errno:0Killed:0Query_time:0.315758Lock_
Python进阶者 Python进阶者
3个月前
Excel中这日期老是出来00:00:00,怎么用Pandas把这个去除
大家好,我是皮皮。一、前言前几天在Python白银交流群【上海新年人】问了一个Pandas数据筛选的问题。问题如下:这日期老是出来00:00:00,怎么把这个去除。二、实现过程后来【论草莓如何成为冻干莓】给了一个思路和代码如下:pd.toexcel之前把这