Sonar Tests (branch)
The Sonar badges will work with both SonarCloud.io and self-hosted SonarQube instances. Just enter the correct protocol and path for your target Sonar deployment.
If you are targeting a legacy SonarQube instance that is version 5.3 or earlier, then be sure to include the version query parameter with the value of your SonarQube version.
You may change the "passed", "failed" and "skipped" text on this badge by supplying query parameters &passed_label=
, &failed_label=
and &skipped_label=
respectively.
For example, if you want to use a different terminology:
?passed_label=good&failed_label=bad&skipped_label=n%2Fa
Or symbols:
?compact_message&passed_label=💃&failed_label=🤦♀️&skipped_label=🤷
There is also a &compact_message
query parameter, which will default to displaying ✔, ✘ and ➟, separated by a horizontal bar |.
Path Parameters |
---|
component string — REQUIREDExample:
|
branch string — REQUIREDExample:
|
Query Parameters |
---|
server string — REQUIREDExample:
|
sonarVersion stringExample:
|
compact_message boolean |
passed_label stringExample:
|
failed_label stringExample:
|
skipped_label stringExample:
|
style stringPossible values: [ Если не указано, стиль по умолчанию для этого значка будет "flat". Example:
|
logo stringИконка из simple-icons. Вы можете щелкнуть по названию иконки на simple-icons, чтобы скопировать slug, или они могут быть найдены в файле slugs.md в репозитории simple-icons. Дополнительная информация. Example:
|
logoColor stringЦвет логотипа (hex, rgb, rgba, hsl, hsla и css-названия цветов поддерживаются). Поддерживается для логотипов simple-icons, но не для кастомных логотипов. Example:
|
logoSize stringНастройте адаптивный размер иконок, установив значение Example:
|
label stringПереопределите текст на левой части значка (URL-encoded для пробелов или специальных символов!). Example:
|
labelColor stringЦвет фона левой части (поддерживаются hex, rgb, rgba, hsl, hsla и css-названия цветов). Example:
|
color stringЦвет фона правой части (поддерживаются hex, rgb, rgba, hsl, hsla и css-названия цветов). Example:
|
cacheSeconds stringВремя жизни HTTP-кэша (правила применяются для вычисления значения по умолчанию для каждого значка, любые указанные значения, ниже значения по умолчанию, будут игнорироваться). Example:
|
link string[]Укажите, что должно происходить при клике на левую/правую часть значка. Обратите внимание, что это работает только при интеграции значка в тег HTML |