From faf0444be0b6ae7068a32466e22540b88f83bcac Mon Sep 17 00:00:00 2001 From: Thaddee Tyl Date: Mon, 20 Jan 2014 10:55:54 +0100 Subject: [PATCH] Advertise code climate support. --- server.js | 6 ++++-- web/index.html | 4 ++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/server.js b/server.js index f49817d..c0e7b5d 100644 --- a/server.js +++ b/server.js @@ -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 { diff --git a/web/index.html b/web/index.html index 357610f..136282b 100644 --- a/web/index.html +++ b/web/index.html @@ -110,6 +110,10 @@ Use an underscore _ if you want a space. Or, you know, use a space. Coveralls http://b.adge.me/coveralls/jekyll/jekyll/master.svg + Code Climate: + Code Climate + http://b.adge.me/codeclimate/github/kabisaict/flow.svg + npm: npm http://b.adge.me/npm/dm/localeval.svg