flipboxfactory/craft-reports

View on GitHub

Showing 100 of 130 total issues

File datatables.js has 6386 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
 * This combined file was created by the DataTables downloader builder:
 *   https://datatables.net/download
 *
 * To rebuild or modify this file with the latest versions of the included
Severity: Major
Found in src/web/assets/dataTables/dist/js/datatables.js - About 2 wks to fix

    Function DataTable has 495 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        var DataTable = function ( options )
        {
            /**
             * Perform a jQuery selector action on the table's TR elements (from the tbody) and
             * return the resulting jQuery object.
    Severity: Major
    Found in src/web/assets/dataTables/dist/js/datatables.js - About 2 days to fix

      Function _fnScrollDraw has 169 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function _fnScrollDraw ( settings )
          {
              // Given that this is such a monster function, a lot of variables are use
              // to try and keep the minimised size as small as possible
              var
      Severity: Major
      Found in src/web/assets/dataTables/dist/js/datatables.js - About 6 hrs to fix

        Function _fnCalculateColumnWidths has 136 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function _fnCalculateColumnWidths ( oSettings )
            {
                var
                    table = oSettings.nTable,
                    columns = oSettings.aoColumns,
        Severity: Major
        Found in src/web/assets/dataTables/dist/js/datatables.js - About 5 hrs to fix

          Function _fnAddOptionsHtml has 109 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function _fnAddOptionsHtml ( oSettings )
              {
                  var classes = oSettings.oClasses;
                  var table = $(oSettings.nTable);
                  var holding = $('<div/>').insertBefore( table ); // Holding element for speed
          Severity: Major
          Found in src/web/assets/dataTables/dist/js/datatables.js - About 4 hrs to fix

            Function _fnFeatureHtmlTable has 103 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function _fnFeatureHtmlTable ( settings )
                {
                    var table = $(settings.nTable);
                
                    // Add the ARIA grid role to the table
            Severity: Major
            Found in src/web/assets/dataTables/dist/js/datatables.js - About 4 hrs to fix

              Function _fnDraw has 99 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function _fnDraw( oSettings )
                  {
                      /* Provide a pre-callback function which can be used to cancel the draw is false is returned */
                      var aPreDraw = _fnCallbackFire( oSettings, 'aoPreDrawCallback', 'preDraw', [oSettings] );
                      if ( $.inArray( false, aPreDraw ) !== -1 )
              Severity: Major
              Found in src/web/assets/dataTables/dist/js/datatables.js - About 3 hrs to fix

                Function _fnBuildAjax has 91 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function _fnBuildAjax( oSettings, data, fn )
                    {
                        // Compatibility with 1.9-, allow fnServerData and event to manipulate
                        _fnCallbackFire( oSettings, 'aoServerParams', 'serverParams', [data] );
                    
                Severity: Major
                Found in src/web/assets/dataTables/dist/js/datatables.js - About 3 hrs to fix

                  Function _ has 89 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                              _: function ( settings, host, idx, buttons, page, pages ) {
                                  var classes = settings.oClasses;
                                  var lang = settings.oLanguage.oPaginate;
                                  var aria = settings.oLanguage.oAria.paginate || {};
                                  var btnDisplay, btnClass, counter=0;
                  Severity: Major
                  Found in src/web/assets/dataTables/dist/js/datatables.js - About 3 hrs to fix

                    Function _fnColumnOptions has 86 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function _fnColumnOptions( oSettings, iCol, oOptions )
                        {
                            var oCol = oSettings.aoColumns[ iCol ];
                            var oClasses = oSettings.oClasses;
                            var th = $(oCol.nTh);
                    Severity: Major
                    Found in src/web/assets/dataTables/dist/js/datatables.js - About 3 hrs to fix

                      Function _fnGetObjectDataFn has 82 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function _fnGetObjectDataFn( mSource )
                          {
                              if ( $.isPlainObject( mSource ) )
                              {
                                  /* Build an object of get functions, and wrap them in a single call */
                      Severity: Major
                      Found in src/web/assets/dataTables/dist/js/datatables.js - About 3 hrs to fix

                        Function _fnSetObjectDataFn has 77 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function _fnSetObjectDataFn( mSource )
                            {
                                if ( $.isPlainObject( mSource ) )
                                {
                                    /* Unlike get, only the underscore (global) option is used for for
                        Severity: Major
                        Found in src/web/assets/dataTables/dist/js/datatables.js - About 3 hrs to fix

                          Function attach has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                          var attach = function( container, buttons ) {
                                              var i, ien, node, button, tabIndex;
                                              var disabledClass = classes.sPageButtonDisabled;
                                              var clickHandler = function ( e ) {
                                                  _fnPageChange( settings, e.data.action, true );
                          Severity: Major
                          Found in src/web/assets/dataTables/dist/js/datatables.js - About 2 hrs to fix

                            Function _fnGetRowElements has 73 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                function _fnGetRowElements( settings, row, colIdx, d )
                                {
                                    var
                                        tds = [],
                                        td = row.firstChild,
                            Severity: Major
                            Found in src/web/assets/dataTables/dist/js/datatables.js - About 2 hrs to fix

                              Function _fnAjaxParameters has 72 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function _fnAjaxParameters( settings )
                                  {
                                      var
                                          columns = settings.aoColumns,
                                          columnCount = columns.length,
                              Severity: Major
                              Found in src/web/assets/dataTables/dist/js/datatables.js - About 2 hrs to fix

                                Function _fnSort has 71 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function _fnSort ( oSettings )
                                    {
                                        var
                                            i, ien, iLen, j, jLen, k, kLen,
                                            sDataType, nTh,
                                Severity: Major
                                Found in src/web/assets/dataTables/dist/js/datatables.js - About 2 hrs to fix

                                  Function __column_selector has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      var __column_selector = function ( settings, selector, opts )
                                      {
                                          var
                                              columns = settings.aoColumns,
                                              names = _pluck( columns, 'sName' ),
                                  Severity: Major
                                  Found in src/web/assets/dataTables/dist/js/datatables.js - About 2 hrs to fix

                                    Function _fnDrawHead has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        function _fnDrawHead( oSettings, aoSource, bIncludeHidden )
                                        {
                                            var i, iLen, j, jLen, k, kLen, n, nLocalTr;
                                            var aoLocal = [];
                                            var aApplied = [];
                                    Severity: Major
                                    Found in src/web/assets/dataTables/dist/js/datatables.js - About 2 hrs to fix

                                      Function _fnLoadState has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          function _fnLoadState ( settings, oInit, callback )
                                          {
                                              var i, ien;
                                              var columns = settings.aoColumns;
                                              var loaded = function ( s ) {
                                      Severity: Major
                                      Found in src/web/assets/dataTables/dist/js/datatables.js - About 2 hrs to fix

                                        Function loadedInit has 62 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                    var loadedInit = function () {
                                                        /*
                                                         * Sorting
                                                         * @todo For modularisation (1.11) this needs to do into a sort start up handler
                                                         */
                                        Severity: Major
                                        Found in src/web/assets/dataTables/dist/js/datatables.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language