mambax7/alumni-26x

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

Summary

Maintainability
B
6 hrs
Test Coverage

File widget-grouping.js has 298 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*! Widget: grouping - updated 9/27/2017 (v2.29.0) *//*
 * Requires tablesorter v2.8+ and jQuery 1.7+
 * by Rob Garrison
 */
/*jshint browser:true, jquery:true, unused:false */
Severity: Minor
Found in media/jquery/tablesorter-master/js/widgets/widget-grouping.js - About 3 hrs to fix

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

            bindEvents : function(table, c, wo){
                if (wo.group_collapsible) {
                    wo.group_collapsedGroups = [];
                    // .on() requires jQuery 1.7+
                    c.$table.on('click toggleGroup keyup', 'tr.group-header', function(event){
    Severity: Minor
    Found in media/jquery/tablesorter-master/js/widgets/widget-grouping.js - About 1 hr to fix

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

              processHeaders : function( c, wo, data ) {
                  var index, isHidden, $label, name, $rows, $row,
                      $headers = c.$table.find( 'tr.group-header' ),
                      len = $headers.length;
      
      
      Severity: Minor
      Found in media/jquery/tablesorter-master/js/widgets/widget-grouping.js - About 1 hr to fix

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

                    date : function(c, $column, txt, part, group) {
        Severity: Minor
        Found in media/jquery/tablesorter-master/js/widgets/widget-grouping.js - About 35 mins to fix

          There are no issues that match your filters.

          Category
          Status