flipboxfactory/craft-reports

View on GitHub

Showing 100 of 130 total issues

Function __row_selector has 60 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var __row_selector = function ( settings, selector, opts )
    {
        var rows;
        var run = function ( sel ) {
            var selInt = _intVal( sel );
Severity: Major
Found in src/web/assets/dataTables/dist/js/datatables.js - About 2 hrs to fix

    Function _fnFeatureHtmlFilter has 60 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function _fnFeatureHtmlFilter ( settings )
        {
            var classes = settings.oClasses;
            var tableId = settings.sTableId;
            var language = settings.oLanguage;
    Severity: Major
    Found in src/web/assets/dataTables/dist/js/datatables.js - About 2 hrs to fix

      Function run has 59 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              var run = function ( s ) {
                  var selInt = _intVal( s );
          
                  // Selector - all
                  if ( s === '' ) {
      Severity: Major
      Found in src/web/assets/dataTables/dist/js/datatables.js - About 2 hrs to fix

        Function __cell_selector has 57 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            var __cell_selector = function ( settings, selector, opts )
            {
                var data = settings.aoData;
                var rows = _selector_row_indexes( settings, opts );
                var cells = _removeEmpty( _pluck_order( data, rows, 'anCells' ) );
        Severity: Major
        Found in src/web/assets/dataTables/dist/js/datatables.js - About 2 hrs to fix

          Function run has 56 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  var run = function ( sel ) {
                      var selInt = _intVal( sel );
                      var i, ien;
                      var aoData = settings.aoData;
              
          Severity: Major
          Found in src/web/assets/dataTables/dist/js/datatables.js - About 2 hrs to fix

            Function _fnPageChange has 54 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function _fnPageChange ( settings, action, redraw )
                {
                    var
                        start     = settings._iDisplayStart,
                        len       = settings._iDisplayLength,
            Severity: Major
            Found in src/web/assets/dataTables/dist/js/datatables.js - About 2 hrs to fix

              Function iterator has 54 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      iterator: function ( flatten, type, fn, alwaysNew ) {
                          var
                              a = [], ret,
                              i, ien, j, jen,
                              context = this.context,
              Severity: Major
              Found in src/web/assets/dataTables/dist/js/datatables.js - About 2 hrs to fix

                Function _fnSortListener has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function _fnSortListener ( settings, colIdx, append, callback )
                    {
                        var col = settings.aoColumns[ colIdx ];
                        var sorting = settings.aaSorting;
                        var asSorting = col.asSorting;
                Severity: Major
                Found in src/web/assets/dataTables/dist/js/datatables.js - About 2 hrs to fix

                  Function _selector_row_indexes has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      var _selector_row_indexes = function ( settings, opts )
                      {
                          var
                              i, ien, tmp, a=[],
                              displayFiltered = settings.aiDisplay,
                  Severity: Major
                  Found in src/web/assets/dataTables/dist/js/datatables.js - About 2 hrs to fix

                    Function loaded has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            var loaded = function ( s ) {
                                if ( ! s || ! s.time ) {
                                    callback();
                                    return;
                                }
                    Severity: Major
                    Found in src/web/assets/dataTables/dist/js/datatables.js - About 2 hrs to fix

                      Function _fnCreateTr has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function _fnCreateTr ( oSettings, iRow, nTrIn, anTds )
                          {
                              var
                                  row = oSettings.aoData[iRow],
                                  rowData = row._aData,
                      Severity: Minor
                      Found in src/web/assets/dataTables/dist/js/datatables.js - About 2 hrs to fix

                        Function _fnApplyColumnDefs has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function _fnApplyColumnDefs( oSettings, aoColDefs, aoCols, fn )
                            {
                                var i, iLen, j, jLen, k, kLen, def;
                                var columns = oSettings.aoColumns;
                            
                        Severity: Minor
                        Found in src/web/assets/dataTables/dist/js/datatables.js - About 1 hr to fix

                          Function _fnSortFlatten has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              function _fnSortFlatten ( settings )
                              {
                                  var
                                      i, iLen, k, kLen,
                                      aSort = [],
                          Severity: Minor
                          Found in src/web/assets/dataTables/dist/js/datatables.js - About 1 hr to fix

                            Function setData has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                        var setData = function (data, val, src) {
                                            var a = _fnSplitObjNotation( src ), b;
                                            var aLast = a[a.length-1];
                                            var arrayNotation, funcNotation, o, innerSrc;
                                
                            Severity: Minor
                            Found in src/web/assets/dataTables/dist/js/datatables.js - About 1 hr to fix

                              Function run has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      var run = function ( s ) {
                                          var fnSelector = typeof s === 'function';
                                  
                                          if ( s === null || s === undefined || fnSelector ) {
                                              // All cells and function selectors
                              Severity: Minor
                              Found in src/web/assets/dataTables/dist/js/datatables.js - About 1 hr to fix

                                Function _fnBuildHead has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function _fnBuildHead( oSettings )
                                    {
                                        var i, ien, cell, row, column;
                                        var thead = oSettings.nTHead;
                                        var tfoot = oSettings.nTFoot;
                                Severity: Minor
                                Found in src/web/assets/dataTables/dist/js/datatables.js - About 1 hr to fix

                                  Function _fnDetectHeader has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      function _fnDetectHeader ( aLayout, nThead )
                                      {
                                          var nTrs = $(nThead).children('tr');
                                          var nTr, nCell;
                                          var i, k, l, iLen, jLen, iColShifted, iColumn, iColspan, iRowspan;
                                  Severity: Minor
                                  Found in src/web/assets/dataTables/dist/js/datatables.js - About 1 hr to fix

                                    Function _fnInitialise has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        function _fnInitialise ( settings )
                                        {
                                            var i, iLen, iAjaxStart=settings.iInitDisplayStart;
                                            var columns = settings.aoColumns, column;
                                            var features = settings.oFeatures;
                                    Severity: Minor
                                    Found in src/web/assets/dataTables/dist/js/datatables.js - About 1 hr to fix

                                      Function _fnFilterData has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          function _fnFilterData ( settings )
                                          {
                                              var columns = settings.aoColumns;
                                              var column;
                                              var i, j, ien, jen, filterData, cellData, row;
                                      Severity: Minor
                                      Found in src/web/assets/dataTables/dist/js/datatables.js - About 1 hr to fix

                                        Function __details_events has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            var __details_events = function ( settings )
                                            {
                                                var api = new _Api( settings );
                                                var namespace = '.dt.DT_details';
                                                var drawEvent = 'draw'+namespace;
                                        Severity: Minor
                                        Found in src/web/assets/dataTables/dist/js/datatables.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language