resources/src/mediawiki.debug/debug.js
Function buildHtml
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
buildHtml: function () {
let $container, $bits, panes, paneId, gitInfoText, $gitInfo;
$container = $( '<div>' )
.attr( {
Function buildConsoleTable
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
buildConsoleTable: function () {
let $table, entryTypeText, i, length, entry;
$table = $( '<table>' ).attr( 'id', 'mw-debug-console' );
length = this.data.log.length;
Function switchPane
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
switchPane: function ( e ) {
let currentPaneId = debug.$container.data( 'currentPane' ),
requestedPaneId = $( this ).prop( 'id' ).slice( 9 ),
$currentPane = $( '#mw-debug-pane-' + currentPaneId ),
$requestedPane = $( '#mw-debug-pane-' + requestedPaneId ),