mambax7/alumni-26x

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

Summary

Maintainability
B
6 hrs
Test Coverage

Function format has 100 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        format: function(table, c, wo) {
            var i, tmp, hdr, icon, time, $header, $icon, $tfoot, $h, oldtheme, oldremove, oldIconRmv, hasOldTheme,
                themesAll = ts.themes,
                $table = c.$table.add( $( c.namespace + '_extra_table' ) ),
                $headers = c.$headers.add( $( c.namespace + '_extra_headers' ) ),
Severity: Major
Found in media/jquery/tablesorter-master/js/widgets/widget-uitheme.js - About 4 hrs to fix

    Consider simplifying this complex logical expression.
    Open

                if (!$table.hasClass('tablesorter-' + theme) || c.theme !== c.appliedTheme || !wo.uitheme_applied) {
                    wo.uitheme_applied = true;
                    oldtheme = themesAll[c.appliedTheme] || {};
                    hasOldTheme = !$.isEmptyObject(oldtheme);
                    oldremove =  hasOldTheme ? [ oldtheme.sortNone, oldtheme.sortDesc, oldtheme.sortAsc, oldtheme.active ].join( ' ' ) : '';
    Severity: Critical
    Found in media/jquery/tablesorter-master/js/widgets/widget-uitheme.js - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status