Showing 150 of 2,746 total issues
Function buildHeaders
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
buildHeaders : function( c ) { var $temp, icon, timer, indx; c.headerList = []; c.headerContent = []; c.sortVars = [];
File Promise.ts
has 298 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
"use strict"; /** Module P: Generic Promises for TypeScript
Function bindMethods
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
bindMethods : function( c ) { var $table = c.$table, namespace = c.namespace, events = ( 'sortReset update updateRows updateAll updateHeaders addRows updateCell updateComplete ' + 'sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup ' +
Consider simplifying this complex logical expression. Open
Open
if ( searchFiltered ) { // cycle through all filters; include last ( columnIndex + 1 = match any column ). Fixes #669 for ( indx = 0; indx < columnIndex + 1; indx++ ) { val = filters[indx] || ''; // break out of loop if we've already determined not to search filtered rows
Function buildRow
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
buildRow: function( table, c, wo ) { var $filter, col, column, $header, makeSelect, disabled, name, ffxn, tmp, // c.columns defined in computeThIndexes() cellFilter = wo.filter_cellFilter, columns = c.columns,
Function setElementPosition
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Notification.prototype.setElementPosition = function() { var arrowColor, arrowCss, arrowSize, color, contH, contW, css, elemH, elemIH, elemIW, elemPos, elemW, gap, j, k, len, len1, mainFull, margin, opp, oppFull, pAlign, pArrow, pMain, pos, posFull, position, ref, wrapPos; position = this.getPosition(); pMain = position[0]; pAlign = position[1];
Function buildSelect
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
buildSelect: function( table, column, arry, updating, onlyAvail ) { table = $( table )[0]; column = parseInt( column, 10 ); if ( !table.config.cache || $.isEmptyObject( table.config.cache ) ) { return;
File task_list.php
has 276 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php/** * Eisen Frontend * http://eisen-dev.github.io *
File recipe_list.php
has 276 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php/** * Eisen Frontend * http://eisen-dev.github.io *
Function bindEvents
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
bindEvents : function( table, $headers, core ) { table = $( table )[ 0 ]; var tmp, c = table.config, namespace = c.namespace,
Function getFilters
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ts.getFilters = function( table, getRaw, setFilters, skipFirst ) { var i, $filters, $column, cols, filters = false, c = table ? $( table )[0].config : '', wo = c ? c.widgetOptions : '';
Function setHeadersCss
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setHeadersCss : function( c ) { var $sorted, indx, column, list = c.sortList, len = list.length, none = ts.css.sortNone + ' ' + c.cssNone,
Function addRows
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
addRows : function( c, $row, resort, callback ) { var txt, val, tbodyIndex, rowIndex, rows, cellIndex, len, cacheIndex, rowData, cells, cell, span, // allow passing a row string if only one non-info tbody exists in the table valid = typeof $row === 'string' && c.$tbodies.length === 1 && /<tr/.test( $row || '' ),
Function bindings
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
bindings : function( c, wo ) { var namespace = c.namespace + 'tsresize'; wo.$resizable_container.children().bind( 'mousedown', function( event ) { // save header cell and mouse position var column,
Function FeedEk
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.FeedEk = function (opt) { var def = $.extend({ MaxCount: 5, ShowDesc: true, ShowPubDate: true,
Function processOptions
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
processOptions: function( table, column, arry ) { if ( !$.isArray( arry ) ) { return false; } table = $( table )[0];
Function applyWidget
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
applyWidget : function( table, init, callback ) { table = $( table )[ 0 ]; // in case this is called externally var indx, len, names, widget, time, c = table.config, widgets = [];
Function updateCell
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
updateCell : function( c, cell, resort, callback ) { if ( ts.isEmptyObject( c.cache ) ) { // empty table, do an update instead - fixes #1099 ts.updateHeader( c ); ts.commonUpdate( c, resort, callback );
Function bindSearch
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
bindSearch: function( table, $el, internal ) { table = $( table )[0]; $el = $( $el ); // allow passing a selector string if ( !$el.length ) { return; } var tmp,
Function multisort
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
multisort : function( c ) { /*jshint loopfunc:true */ var tbodyIndex, sortTime, colMax, rows, table = c.table, dir = 0, textSorter = c.textSorter || '',