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

查看:17
本文介绍了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客户端"软件执行,可以是sonar runner、sonar ant task、sonar Eclipse插件等.分析结果可以自动上传到服务器,可以通过声纳网络应用程序.

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),它会在夜间构建过程中执行自动声纳分析.其他时间表也是可能的,但开发人员应该知道他们何时可以期待服务器端分析结果的更新.自动分析的结果可以通过sonar 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天全站免登陆