Showing 100 of 130 total issues
Function _fnFeatureHtmlPaginate
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnFeatureHtmlPaginate ( settings )
{
var
type = settings.sPaginationType,
plugin = DataTable.ext.pager[ type ],
Function _fnBrowserDetect
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnBrowserDetect( settings )
{
// We don't need to do this every time DataTables is constructed, the values
// calculated are specific to the browser and OS configuration which we
// don't expect to change between initialisations
Function fetchData
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var fetchData = function (data, type, src) {
var arrayNotation, funcNotation, out, innerSrc;
if ( src !== "" )
{
Function _fnInvalidate
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnInvalidate( settings, rowIdx, src, colIdx )
{
var row = settings.aoData[ rowIdx ];
var i, ien;
var cellWrite = function ( cell, col ) {
Function _fnFeatureHtmlLength
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnFeatureHtmlLength ( settings )
{
var
classes = settings.oClasses,
tableId = settings.sTableId,
Function _fnColumnTypes
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnColumnTypes ( settings )
{
var columns = settings.aoColumns;
var data = settings.aoData;
var types = DataTable.ext.type.detect;
Function jqueryui
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jqueryui: function ( settings, cell, column, classes ) {
$('<div/>')
.addClass( classes.sSortJUIWrapper )
.append( cell.contents() )
.append( $('<span/>')
Consider simplifying this complex logical expression. Open
Open
if ( ie67 || ! userInputs && ! scrollX && ! scrollY &&
columnCount == _fnVisbleColumns( oSettings ) &&
columnCount == headerCells.length
) {
for ( i=0 ; i<columnCount ; i++ ) {
Function _fnSortAria
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnSortAria ( settings )
{
var label;
var nextSort;
var columns = settings.aoColumns;
Function _fnFilter
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnFilter( settings, input, force, regex, smart, caseInsensitive )
{
var rpSearch = _fnFilterCreateSearch( input, regex, smart, caseInsensitive );
var prevSearch = settings.oPreviousSearch.sSearch;
var displayMaster = settings.aiDisplayMaster;
Function _toSettings
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var _toSettings = function ( mixed )
{
var idx, jq;
var settings = DataTable.settings;
var tables = $.map( settings, function (el, i) {
Function _fnFilterComplete
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnFilterComplete ( oSettings, oInput, iForce )
{
var oPrevSearch = oSettings.oPreviousSearch;
var aoPrevSearch = oSettings.aoPreSearchCols;
var fnSaveFilter = function ( oFilter ) {
Function _fnGetCellData
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnGetCellData( settings, rowIdx, colIdx, type )
{
var draw = settings.iDraw;
var col = settings.aoColumns[colIdx];
var rowData = settings.aoData[rowIdx]._aData;
Function __details_add
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var __details_add = function ( ctx, row, data, klass )
{
// Convert to array of TR elements
var rows = [];
var addRow = function ( r, k ) {
Function _numbers
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _numbers ( page, pages ) {
var
numbers = [],
buttons = extPagination.numbers_length,
half = Math.floor( buttons / 2 ),
Function _fnAjaxUpdateDraw
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnAjaxUpdateDraw ( settings, json )
{
// v1.10 uses camelCase variables, while 1.9 uses Hungarian notation.
// Support both
var compat = function ( old, modern ) {
Function _fnFilterColumn
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function _fnFilterColumn ( settings, searchStr, colIdx, regex, smart, caseInsensitive )
Avoid deeply nested control flow statements. Open
Open
if ( detectedType === 'html' ) {
break;
}
Avoid deeply nested control flow statements. Open
Open
if ( cOption == aoFeatures[k].cFeature )
{
featureNode = aoFeatures[k].fnInit( oSettings );
break;
}
Avoid deeply nested control flow statements. Open
Open
for ( k=0 ; k<iRowspan ; k++ )
{
aLayout[i+k][iColShifted+l] = {
"cell": nCell,
"unique": bUnique