Static Code Climate examples (#2201)
This commit is contained in:
@@ -338,31 +338,6 @@ const allBadgeExamples = [
|
||||
exampleUrl:
|
||||
'/bitrise/cde737473028420d/master.svg?token=GCIdEzacE4GW32jLVrZb7A',
|
||||
},
|
||||
{
|
||||
title: 'Code Climate',
|
||||
previewUrl: '/codeclimate/issues/twbs/bootstrap.svg',
|
||||
},
|
||||
{
|
||||
title: 'Code Climate',
|
||||
previewUrl: '/codeclimate/maintainability/angular/angular.js.svg',
|
||||
},
|
||||
{
|
||||
title: 'Code Climate',
|
||||
previewUrl:
|
||||
'/codeclimate/maintainability-percentage/angular/angular.js.svg',
|
||||
},
|
||||
{
|
||||
title: 'Code Climate',
|
||||
previewUrl: '/codeclimate/coverage/jekyll/jekyll.svg',
|
||||
},
|
||||
{
|
||||
title: 'Code Climate',
|
||||
previewUrl: '/codeclimate/coverage-letter/jekyll/jekyll.svg',
|
||||
},
|
||||
{
|
||||
title: 'Code Climate',
|
||||
previewUrl: '/codeclimate/tech-debt/jekyll/jekyll.svg',
|
||||
},
|
||||
{
|
||||
title: 'Codacy grade',
|
||||
previewUrl: '/codacy/grade/e27821fb6289410b8f58338c7e0bc686.svg',
|
||||
|
||||
@@ -134,4 +134,71 @@ module.exports = class Codeclimate extends LegacyService {
|
||||
})
|
||||
)
|
||||
}
|
||||
|
||||
static get url() {
|
||||
return {
|
||||
base: 'codeclimate',
|
||||
}
|
||||
}
|
||||
|
||||
static get category() {
|
||||
return 'build'
|
||||
}
|
||||
|
||||
static get examples() {
|
||||
return [
|
||||
{
|
||||
title: 'Code Climate issues',
|
||||
exampleUrl: 'issues/twbs/bootstrap',
|
||||
urlPattern: 'issues/:userRepo',
|
||||
staticExample: { label: 'issues', message: '89', color: 'red' },
|
||||
},
|
||||
{
|
||||
title: 'Code Climate maintainability',
|
||||
exampleUrl: 'maintainability/angular/angular.js',
|
||||
urlPattern: 'maintainability/:userRepo',
|
||||
staticExample: { label: 'maintainability', message: 'F', color: 'red' },
|
||||
},
|
||||
{
|
||||
title: 'Code Climate maintainability (percentage)',
|
||||
exampleUrl: 'maintainability-percentage/angular/angular.js',
|
||||
urlPattern: 'maintainability-percentage/:userRepo',
|
||||
staticExample: {
|
||||
label: 'maintainability',
|
||||
message: '4.6%',
|
||||
color: 'red',
|
||||
},
|
||||
},
|
||||
{
|
||||
title: 'Code Climate coverage',
|
||||
exampleUrl: 'coverage/jekyll/jekyll',
|
||||
urlPattern: 'coverage/:userRepo',
|
||||
staticExample: {
|
||||
label: 'coverage',
|
||||
message: '95%',
|
||||
color: 'green',
|
||||
},
|
||||
},
|
||||
{
|
||||
title: 'Code Climate coverage (letter)',
|
||||
exampleUrl: 'coverage-letter/jekyll/jekyll',
|
||||
urlPattern: 'coverage-letter/:userRepo',
|
||||
staticExample: {
|
||||
label: 'coverage',
|
||||
message: 'A',
|
||||
color: 'brightgreen',
|
||||
},
|
||||
},
|
||||
{
|
||||
title: 'Code Climate technical debt',
|
||||
exampleUrl: 'tech-debt/jekyll/jekyll',
|
||||
urlPattern: 'tech-debt/:userRepo',
|
||||
staticExample: {
|
||||
label: 'technical debt',
|
||||
message: '3%',
|
||||
color: 'brightgreen',
|
||||
},
|
||||
},
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user