rrrene / inch-badge

Badge generator for Inch
MIT License
7 stars 2 forks source link

shields.io badge generation #1

Open acmetech opened 10 years ago

acmetech commented 10 years ago

Any plans to support shields.io for badge generation? Travis, Code Climate, etc have added support

Thanks

rrrene commented 10 years ago

Hi there,

it's an idea I've been toying with from the start, but due to a "high maintenance" professional life not come around to implement.

acmetech commented 10 years ago

I understand completely... and thanks for a great tool

suweller commented 10 years ago

The shield.io svg badges currently only allows text on the left and right hand side of their badges.

An inch-badge uses some sort of progress bar. Shield.io would have to expand their api quite a bit to allow for more than just inserting text into a <text> element, and passing a fill= attribute to it.

krainboltgreene commented 9 years ago

Couldn't inch use a text version for shields.io?

[Inch | 137 A, 5 B, 3 C, 7 U]

rrrene commented 9 years ago

I'm a firm believer in not using numbers to represent docs coverage. (related: Why Inch doesn't use percentages)

That doesn't mean that I am against a native shields.io badge for Inch coverage analysis. But we would have to build support for that, since the "colored progress bar" kind of badge is currently not supported by the Shields project (and why would it?).

MattiSG commented 9 years ago

Interesting discussion. I was about to "+1" but indeed, if we can only have text, let's stick with the current badges!