Added plugins to Quality Trend chart

This commit is contained in:
corpsee 2016-04-10 11:07:49 +06:00
parent 2ddda7711e
commit 8a61af72d2
3 changed files with 10 additions and 3 deletions

View file

@ -181,6 +181,7 @@ PHPCI',
'phpcs_errors' => 'PHPCS Errors',
'phplint_errors' => 'Lint Errors',
'phpunit_errors' => 'PHPUnit Errors',
'phpcpd_warnings' => 'PHP Copy/Paste Detector Warnings',
'phpdoccheck_warnings' => 'Missing Docblocks',
'issues' => 'Issues',

View file

@ -172,6 +172,7 @@ PHPCI',
'phpcs_errors' => 'Ошибки PHPCS',
'phplint_errors' => 'Ошибки Lint',
'phpunit_errors' => 'Ошибки PHPUnit',
'phpcpd_warnings' => 'Предупреждения PHP Copy/Paste Detector',
'phpdoccheck_warnings' => 'Пропущенные Docblocks',
'issues' => 'Проблемы',

View file

@ -7,7 +7,12 @@ var warningsPlugin = ActiveBuild.UiPlugin.extend({
'phplint-errors': Lang.get('phplint_errors'),
'phpunit-errors': Lang.get('phpunit_errors'),
'phptallint-errors': Lang.get('phptal_errors'),
'phptallint-warnings': Lang.get('phptal_warnings')
'phptallint-warnings': Lang.get('phptal_warnings'),
'phpmd-warnings': Lang.get('phpmd_warnings'),
'phpdoccheck-warnings': Lang.get('phpdoccheck_warnings'),
'phpcpd-warnings': Lang.get('phpcpd_warnings'),
'phpcs-warnings': Lang.get('phpcs_warnings'),
'phpcs-errors': Lang.get('phpcs_errors')
},
data: {},
displayOnUpdate: false,
@ -22,7 +27,7 @@ var warningsPlugin = ActiveBuild.UiPlugin.extend({
queries.push(ActiveBuild.registerQuery(key, -1, {num_builds: 10, key: key}));
}
$(window).on('codeception-errors phptallint-warnings phptallint-errors phplint-errors phpunit-errors', function(data) {
$(window).on('codeception-errors phptallint-warnings phptallint-errors phplint-errors phpunit-errors phpmd-warnings phpdoccheck-warnings phpcpd-warnings phpcs-warnings phpcs-errors', function(data) {
self.onUpdate(data);
});
@ -78,7 +83,7 @@ var warningsPlugin = ActiveBuild.UiPlugin.extend({
var self = this;
self.rendered = true;
var colors = ['#4D4D4D', '#5DA5DA', '#FAA43A', '#60BD68', '#F17CB0', '#B2912F', '#B276B2', '#DECF3F', '#F15854'];
var colors = ['#4D4D4D', '#5DA5DA', '#FAA43A', '#60BD68', '#F17CB0', '#B2912F', '#B276B2', '#DECF3F', '#F15854', '#4D4D4D'];
self.chartData = {
labels: [],