badges/shields

Enhance Sonar Badges

Open

#3236 opened on Mar 26, 2019

View on GitHub
 (0 comments) (3 reactions) (0 assignees)JavaScript (22,337 stars) (5,423 forks)batch import
good first issueservice-badge

Description

:clipboard: Description We currently provide what I'll call "first class" badge support for a handful of Sonar metrics (code coverage, tech debt, violations, fortify rating, and documented api density).

However, Sonar provides a lot of other metrics (see: https://docs.sonarqube.org/latest/user-guide/metric-definitions/), and the SaaS offering of Sonar (https://sonarcloud.io/about) provides native badges for many of those other metrics.

We technically have badge support for all of those other metrics too, but it's what I'll call "second class" support where we simply display a brightgreen badge blue badge with the raw value (updated to reflect the change in the Sonar refactor in #3189).

For example, here's the native Sonar badge for security rating: Security Rating <-- (live badge) image <-- (bad screenshot I took to capture the state in case the underlying score changes)

And here's our corresponding badge for the exact same metric (https://img.shields.io/sonar/https/sonarcloud.io/com.luckybox:luckybox/security_rating.svg)

Let's add similar "first class" badge support for those other core Sonar metrics!

Contributor guide