Restores PHPCS to quality trend chart

This commit is contained in:
Ricardo Vega 2016-05-27 17:31:01 -05:00
parent 8c755f23b5
commit 684e463938
3 changed files with 12 additions and 7 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);
});