本文介绍了通过 shields.io 徽章添加 SonarQube 覆盖范围的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有 com.github.xxxxxx:xxxxxx Maven 存储库,我想添加盾牌徽章,但我的徽章无效:

Sonarqube xxxxxx 项目页面:

解决方案

现在,我不使用

I have com.github.xxxxxx:xxxxxx Maven repository and I want add shields badge but I have a invalid badge:

https://img.shields.io/sonar/https/sonarqube.com/com.github.noraui:noraui/tech_debt.svg

Sonarqube xxxxxx project page: https://sonarqube.com/dashboard?id=com.github.xxxxxx%3Axxxxxx

I find a OK sample from an other sonar server:

https://img.shields.io/sonar/http/sonar.qatools.ru/ru.yandex.qatools.allure:allure-core/coverage.svg

https://img.shields.io/sonar/http/sonar.qatools.ru/ru.yandex.qatools.allure:allure-core/tech_debt.svg

解决方案

Now, i do not use http://shields.io but directly the https://sonarcloud.io web site.

[![Quality Gate](https://sonarcloud.io/api/badges/gate?key=com.github.noraui:noraui)](https://sonarcloud.io/dashboard/index/com.github.noraui:noraui)
[![SonarCloud Coverage](https://sonarcloud.io/api/badges/measure?key=com.github.noraui%3Anoraui&metric=coverage)](https://sonarcloud.io/component_measures/metric/coverage/list?id=com.github.noraui:noraui)
[![SonarCloud Bugs](https://sonarcloud.io/api/badges/measure?key=com.github.noraui%3Anoraui&metric=bugs)](https://sonarcloud.io/component_measures/metric/reliability_rating/list?id=com.github.noraui%3Anoraui)
[![SonarCloud Vulnerabilities](https://sonarcloud.io/api/badges/measure?key=com.github.noraui%3Anoraui&metric=vulnerabilities)](https://sonarcloud.io/component_measures/metric/security_rating/list?id=com.github.noraui%3Anoraui)

这篇关于通过 shields.io 徽章添加 SonarQube 覆盖范围的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 16:37