mambax7/alumni-26x

View on GitHub
media/jquery/tablesorter-master/js/widgets/widget-sort2Hash.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function init has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        init : function( c, wo ) {
            var filter, temp, page, size,
                table = c.table,
                pager = c.pager,
                hasSaveSort = ts.hasWidget( table, 'saveSort' ),
Severity: Minor
Found in media/jquery/tablesorter-master/js/widgets/widget-sort2Hash.js - About 1 hr to fix

    Function setHash has 32 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            setHash : function( c, wo ) {
                var str = '',
                    hash = window.location.hash,
                    hasPager = ts.hasWidget( c.table, 'pager' ),
                    hasFilter = ts.hasWidget( c.table, 'filter' ),
    Severity: Minor
    Found in media/jquery/tablesorter-master/js/widgets/widget-sort2Hash.js - About 1 hr to fix

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

              convertString2Sort : function( c, wo, sortHash ) {
                  var regex, column, direction, temp, index, $cell,
                      arry = sortHash.split( wo.sort2Hash_separator ),
                      indx = 0,
                      len = arry.length,
      Severity: Minor
      Found in media/jquery/tablesorter-master/js/widgets/widget-sort2Hash.js - About 1 hr to fix

        Function encodeHash has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

                encodeHash : function( c, wo, component, value, rawValue ) {
        Severity: Minor
        Found in media/jquery/tablesorter-master/js/widgets/widget-sort2Hash.js - About 35 mins to fix

          There are no issues that match your filters.

          Category
          Status