flipboxfactory/craft-reports

View on GitHub

Showing 100 of 130 total issues

Function _fnFeatureHtmlPaginate has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function _fnFeatureHtmlPaginate ( settings )
    {
        var
            type   = settings.sPaginationType,
            plugin = DataTable.ext.pager[ type ],
Severity: Minor
Found in src/web/assets/dataTables/dist/js/datatables.js - About 1 hr to fix

    Function _fnBrowserDetect has 40 lines of code (exceeds 25 allowed). Consider refactoring.
    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
    Severity: Minor
    Found in src/web/assets/dataTables/dist/js/datatables.js - About 1 hr to fix

      Function fetchData has 40 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                  var fetchData = function (data, type, src) {
                      var arrayNotation, funcNotation, out, innerSrc;
          
                      if ( src !== "" )
                      {
      Severity: Minor
      Found in src/web/assets/dataTables/dist/js/datatables.js - About 1 hr to fix

        Function _fnInvalidate has 39 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function _fnInvalidate( settings, rowIdx, src, colIdx )
            {
                var row = settings.aoData[ rowIdx ];
                var i, ien;
                var cellWrite = function ( cell, col ) {
        Severity: Minor
        Found in src/web/assets/dataTables/dist/js/datatables.js - About 1 hr to fix

          Function _fnFeatureHtmlLength has 39 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function _fnFeatureHtmlLength ( settings )
              {
                  var
                      classes  = settings.oClasses,
                      tableId  = settings.sTableId,
          Severity: Minor
          Found in src/web/assets/dataTables/dist/js/datatables.js - About 1 hr to fix

            Function _fnColumnTypes has 35 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function _fnColumnTypes ( settings )
                {
                    var columns = settings.aoColumns;
                    var data = settings.aoData;
                    var types = DataTable.ext.type.detect;
            Severity: Minor
            Found in src/web/assets/dataTables/dist/js/datatables.js - About 1 hr to fix

              Function jqueryui has 34 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                          jqueryui: function ( settings, cell, column, classes ) {
                              $('<div/>')
                                  .addClass( classes.sSortJUIWrapper )
                                  .append( cell.contents() )
                                  .append( $('<span/>')
              Severity: Minor
              Found in src/web/assets/dataTables/dist/js/datatables.js - About 1 hr to fix

                Consider simplifying this complex logical expression.
                Open

                        if ( ie67 || ! userInputs && ! scrollX && ! scrollY &&
                             columnCount == _fnVisbleColumns( oSettings ) &&
                             columnCount == headerCells.length
                        ) {
                            for ( i=0 ; i<columnCount ; i++ ) {
                Severity: Critical
                Found in src/web/assets/dataTables/dist/js/datatables.js - About 1 hr to fix

                  Function _fnSortAria has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function _fnSortAria ( settings )
                      {
                          var label;
                          var nextSort;
                          var columns = settings.aoColumns;
                  Severity: Minor
                  Found in src/web/assets/dataTables/dist/js/datatables.js - About 1 hr to fix

                    Function _fnFilter has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                    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;
                    Severity: Minor
                    Found in src/web/assets/dataTables/dist/js/datatables.js - About 1 hr to fix

                      Function _toSettings has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          var _toSettings = function ( mixed )
                          {
                              var idx, jq;
                              var settings = DataTable.settings;
                              var tables = $.map( settings, function (el, i) {
                      Severity: Minor
                      Found in src/web/assets/dataTables/dist/js/datatables.js - About 1 hr to fix

                        Function _fnFilterComplete has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function _fnFilterComplete ( oSettings, oInput, iForce )
                            {
                                var oPrevSearch = oSettings.oPreviousSearch;
                                var aoPrevSearch = oSettings.aoPreSearchCols;
                                var fnSaveFilter = function ( oFilter ) {
                        Severity: Minor
                        Found in src/web/assets/dataTables/dist/js/datatables.js - About 1 hr to fix

                          Function _fnGetCellData has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              function _fnGetCellData( settings, rowIdx, colIdx, type )
                              {
                                  var draw           = settings.iDraw;
                                  var col            = settings.aoColumns[colIdx];
                                  var rowData        = settings.aoData[rowIdx]._aData;
                          Severity: Minor
                          Found in src/web/assets/dataTables/dist/js/datatables.js - About 1 hr to fix

                            Function __details_add has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                var __details_add = function ( ctx, row, data, klass )
                                {
                                    // Convert to array of TR elements
                                    var rows = [];
                                    var addRow = function ( r, k ) {
                            Severity: Minor
                            Found in src/web/assets/dataTables/dist/js/datatables.js - About 1 hr to fix

                              Function _numbers has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function _numbers ( page, pages ) {
                                      var
                                          numbers = [],
                                          buttons = extPagination.numbers_length,
                                          half = Math.floor( buttons / 2 ),
                              Severity: Minor
                              Found in src/web/assets/dataTables/dist/js/datatables.js - About 1 hr to fix

                                Function _fnAjaxUpdateDraw has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function _fnAjaxUpdateDraw ( settings, json )
                                    {
                                        // v1.10 uses camelCase variables, while 1.9 uses Hungarian notation.
                                        // Support both
                                        var compat = function ( old, modern ) {
                                Severity: Minor
                                Found in src/web/assets/dataTables/dist/js/datatables.js - About 1 hr to fix

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

                                      function _fnFilterColumn ( settings, searchStr, colIdx, regex, smart, caseInsensitive )
                                  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 ( detectedType === 'html' ) {
                                                                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

                                                          if ( cOption == aoFeatures[k].cFeature )
                                                          {
                                                              featureNode = aoFeatures[k].fnInit( oSettings );
                                                              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

                                                                for ( k=0 ; k<iRowspan ; k++ )
                                                                {
                                                                    aLayout[i+k][iColShifted+l] = {
                                                                        "cell": nCell,
                                                                        "unique": bUnique
                                        Severity: Major
                                        Found in src/web/assets/dataTables/dist/js/datatables.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language