This commit is contained in:
ricardoe 2016-10-28 04:40:04 +00:00 committed by GitHub
commit 67764d50d0
3 changed files with 13 additions and 8 deletions

View file

@ -181,6 +181,8 @@ PHPCI',
'phpcs_errors' => 'PHPCS Errors',
'phplint_errors' => 'Lint Errors',
'phpunit_errors' => 'PHPUnit Errors',
'phptal_errors' => 'PHPTAL Errors',
'phptal_warnings' => 'PHPTAL Warnings',
'phpdoccheck_warnings' => 'Missing Docblocks',
'issues' => 'Issues',

View file

@ -171,11 +171,13 @@ PHPCI',
'build_log' => 'Log',
'quality_trend' => 'Tendencia de calidad',
'codeception_errors' => 'Errores de Codeception',
'phpmd_warnings' => 'PHPMD Warnings',
'phpcs_warnings' => 'PHPCS Warnings',
'phpcs_errors' => 'PHPCS Errors',
'phplint_errors' => 'Lint Errors',
'phpunit_errors' => 'PHPUnit Errors',
'phpmd_warnings' => 'Alertas de PHPMD',
'phpcs_warnings' => 'Alertas de PHPCS',
'phpcs_errors' => 'Errores de PHPCS',
'phplint_errors' => 'Errores de Lint',
'phpunit_errors' => 'Errores de PHPUnit',
'phptal_errors' => 'Errores de PHPTAL',
'phptal_warnings' => 'Alertas de PHPTAL',
'phpdoccheck_warnings' => 'Docblocks faltantes',
'issues' => 'Incidencias',

View file

@ -7,7 +7,8 @@ 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'),
'phpcs-errors': Lang.get('phpcs_errors'),
},
data: {},
displayOnUpdate: false,
@ -22,7 +23,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 phpcs-errors', function(data) {
self.onUpdate(data);
});
@ -102,7 +103,7 @@ var warningsPlugin = ActiveBuild.UiPlugin.extend({
var i = 0;
for (var key in self.keys) {
self.chartData.datasets[i].data.push(parseInt(self.data[build][key]));
self.chartData.datasets[i].data.push(~~(self.data[build][key]));
i++;
}
}