flipboxfactory/craft-reports

View on GitHub

Showing 100 of 130 total issues

Avoid deeply nested control flow statements.
Open

                    else if ( typeof aTargets[j] === 'number' && aTargets[j] < 0 )
                    {
                        /* Negative integer, right to left column counting */
                        fn( columns.length+aTargets[j], def );
                    }
Severity: Major
Found in src/web/assets/dataTables/dist/js/datatables.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                            for ( k=0 ; k<iRowspan ; k++ )
                            {
                                aApplied[i+k][j+iColspan] = 1;
                            }
    Severity: Major
    Found in src/web/assets/dataTables/dist/js/datatables.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                              if ( fomatters[ column.sType ] ) {
                                  cellData = fomatters[ column.sType ]( cellData );
                              }
      Severity: Major
      Found in src/web/assets/dataTables/dist/js/datatables.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                if ( ! detectedType && j !== types.length-1 ) {
                                    break;
                                }
        Severity: Major
        Found in src/web/assets/dataTables/dist/js/datatables.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                                  while( columns.length <= aTargets[j] )
                                  {
                                      _fnAddColumn( oSettings );
                                  }
          Severity: Major
          Found in src/web/assets/dataTables/dist/js/datatables.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                for ( j=0, jen=items.length ; j<jen ; j++ ) {
                                    item = items[j];
                
                                    if ( type === 'cell' ) {
                                        ret = fn.call( apiInst, context[i], item.row, item.column, i, j );
            Severity: Major
            Found in src/web/assets/dataTables/dist/js/datatables.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                          if ( s( o, _fnGetCellData(settings, row, j), host.anCells ? host.anCells[j] : null ) ) {
                                              a.push( o );
                                          }
              Severity: Major
              Found in src/web/assets/dataTables/dist/js/datatables.js - About 45 mins to fix

                Function _fnReduce has 6 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    function _fnReduce ( that, fn, init, start, end, inc )
                Severity: Minor
                Found in src/web/assets/dataTables/dist/js/datatables.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                          if ( cache[k] === undefined ) {
                                              cache[k] = _fnGetCellData( settings, k, i, 'type' );
                                          }
                  Severity: Major
                  Found in src/web/assets/dataTables/dist/js/datatables.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                            if ( cellData === null ) {
                                                cellData = '';
                                            }
                    Severity: Major
                    Found in src/web/assets/dataTables/dist/js/datatables.js - About 45 mins to fix

                      Function _fnFilter has 6 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          function _fnFilter( settings, input, force, regex, smart, caseInsensitive )
                      Severity: Minor
                      Found in src/web/assets/dataTables/dist/js/datatables.js - About 45 mins to fix

                        Function _ has 6 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                                    _: function ( settings, host, idx, buttons, page, pages ) {
                        Severity: Minor
                        Found in src/web/assets/dataTables/dist/js/datatables.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                                  if ( arrayNotation )
                                                  {
                                                      // Array notation
                                                      a[i] = a[i].replace(__reArray, '');
                              
                          Severity: Major
                          Found in src/web/assets/dataTables/dist/js/datatables.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                                        for ( var j=0, jLen=val.length ; j<jLen ; j++ )
                                                        {
                                                            o = {};
                                                            setData( o, val[j], innerSrc );
                                                            data[ a[i] ].push( o );
                            Severity: Major
                            Found in src/web/assets/dataTables/dist/js/datatables.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                              if ( search == 'none' ) {
                                                  a.push( i );
                                              }
                                              else { // applied | removed
                                                  tmp = $.inArray( i, displayFiltered );
                              Severity: Major
                              Found in src/web/assets/dataTables/dist/js/datatables.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                        if ( typeof cellData !== 'string' && cellData.toString ) {
                                                            cellData = cellData.toString();
                                                        }
                                Severity: Major
                                Found in src/web/assets/dataTables/dist/js/datatables.js - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                          if ( data === null || data[ a[i] ] === undefined )
                                                          {
                                                              return undefined;
                                                          }
                                  Severity: Major
                                  Found in src/web/assets/dataTables/dist/js/datatables.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                        if ( type === 'column-rows' ) {
                                                            rows = _selector_row_indexes( context[i], selector.opts );
                                                        }
                                    Severity: Major
                                    Found in src/web/assets/dataTables/dist/js/datatables.js - About 45 mins to fix

                                      Function fnFilter has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                              this.fnFilter = function( sInput, iColumn, bRegex, bSmart, bShowGlobal, bCaseInsensitive )
                                      Severity: Minor
                                      Found in src/web/assets/dataTables/dist/js/datatables.js - About 45 mins to fix

                                        Consider simplifying this complex logical expression.
                                        Open

                                                        if ( create || ((!nTrIn || oCol.mRender || oCol.mData !== i) &&
                                                             (!$.isPlainObject(oCol.mData) || oCol.mData._ !== i+'.display')
                                                        )) {
                                                            nTd.innerHTML = _fnGetCellData( oSettings, iRow, i, 'display' );
                                                        }
                                        Severity: Major
                                        Found in src/web/assets/dataTables/dist/js/datatables.js - About 40 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language