mambax7/alumni-26x

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

Summary

Maintainability
A
3 hrs
Test Coverage

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

    function verticalGroup( table, c, wo, init ) {
        // -------------------------------------------------------------------------
        // loop thru the header row,
        //    - look for .vertical-group
        //
Severity: Major
Found in media/jquery/tablesorter-master/js/widgets/widget-vertical-group.js - About 2 hrs to fix

    Avoid deeply nested control flow statements.
    Open

                        if ( has_zebra ) {
                            // only adjust striping based on the first sorted column
                            setZebra( wo, $cell, isSorted ? zebra_index : ++zebra_index );
                        }
    Severity: Major
    Found in media/jquery/tablesorter-master/js/widgets/widget-vertical-group.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                          if ( !$cell.hasClass( tscss.verticalGroupShow ) ) {
                              $cell.addClass( tscss.verticalGroupShow );
                          }
      Severity: Major
      Found in media/jquery/tablesorter-master/js/widgets/widget-vertical-group.js - About 45 mins to fix

        There are no issues that match your filters.

        Category
        Status