SonarQube-如何使用 [英] SonarQube - how is it used

查看:263
本文介绍了SonarQube-如何使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个简单的问题,可能有一个简单的答案,但是我找不到它.我们希望将SonarQube与Checkstyle和其他一些工具一起部署,但是我们找不到它是用于集中式服务器部署还是在每台开发人员计算机上部署?所有教程都显示了在不同计算机上的安装并已在localhost中使用,同时有一个公共实例示例,其要求和规范肯定与服务类似.

I have a simple problem, with a simple answer probably, but I can't find what is it. We want to deploy SonarQube along with Checkstyle and some other tools, but we can't find out is it meant for a centralized, server deployment, or on each developer machine? All tutorials show installations on separate machines and being used in the localhost, while there is a public instance example, and the requirements and specs certainly look service-like.

另一方面,我不知道开发人员如何提交其代码以检查其是否在服务器上.

On the other hand, I'm not getting how do the developers submit their code for checks if it is on a server.

因此,简而言之,它是如何部署的?任何清单或类似的东西都会有很大的帮助.

So, in short, how is it deployed? Any checklist or something similar would be of great help.

推荐答案

SonarQube(以前只是"Sonar")是基于服务器的系统.当然,您可以将其安装在本地计算机上(硬件要求最低).但这是一个带有数据库的中央服务器.

SonarQube (formerly just "Sonar") is a server-based system. Of course you can install it on your local machine (the hardware requirements are minimal). But it is a central server with a database.

分析由某些Sonar客户端"软件执行,这些软件可能是声纳运行程序,声纳蚂蚁任务,声纳Eclipse插件等.分析结果可以自动上传到服务器,并可以通过声纳Web应用程序.

Analyses are performed by some Sonar "client" software, which could be the sonar runner, the sonar ant task, the sonar Eclipse plugin etc. The analysis results can be automatically uploaded to the server, where they can be accessed via the sonar Web application.

在有许多开发人员的环境中,您应该运行构建服务器(例如Hudson或Jenkins),该服务器会在夜间构建过程中执行自动声纳分析.其他时间表也可以,但是开发人员应该知道何时可以期望更新服务器端分析结果.自动化的分析结果可以通过声纳Eclipse插件显示在单个开发人员的Eclipse编辑器中.

In an environment with many developers, you should run a build server (e.g. Hudson or Jenkins), which performs automatic sonar analyses as part of the nightly build. Other schedules are possible, but the developers should know when they can expect updates of the server-side analysis results. The results of the automated analysis can be displayed in the individual developer's Eclipse editor by way of the sonar Eclipse plugin.

Sonar上的建筑文档很少.我一直在寻找一张图片来形象化我刚才描述的内容,但找不到一个...

The architectural documentation on Sonar is quite sparse. I've looked for a picture to visualize what I just described, but could not find one ...

这篇关于SonarQube-如何使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆