Advertise code climate support.

This commit is contained in:
Thaddee Tyl 2014-01-20 10:55:54 +01:00
parent 7d257711f5
commit faf0444be0
2 changed files with 8 additions and 2 deletions

View File

@ -322,10 +322,12 @@ function(data, match, end, ask) {
var state = statusMatch[1].replace('-', '.');
var score = +state;
badgeData.text[1] = state;
if (score > 3) {
if (score == 4) {
badgeData.colorscheme = 'brightgreen';
} else if (score > 2) {
} else if (score > 3) {
badgeData.colorscheme = 'green';
} else if (score > 2) {
badgeData.colorscheme = 'yellowgreen';
} else if (score > 1) {
badgeData.colorscheme = 'yellow';
} else {

View File

@ -110,6 +110,10 @@ Use an underscore <code>_</code> if you want a space. Or, you know, use a space.
<td><img src='/coveralls/jekyll/jekyll/master.svg' alt='Coveralls'/></td>
<td><code>http://b.adge.me/coveralls/jekyll/jekyll/master.svg</code></td>
</tr>
<tr><th> Code Climate: </th>
<td><img src='/codeclimate/github/kabisaict/flow.svg' alt='Code Climate'/></td>
<td><code>http://b.adge.me/codeclimate/github/kabisaict/flow.svg</code></td>
</tr>
<tr><th> npm: </th>
<td><img src='/npm/dm/localeval.svg' alt='npm'/></td>
<td><code>http://b.adge.me/npm/dm/localeval.svg</code></td>