mambax7/alumni-26x

View on GitHub
media/jquery/tablesorter-master/js/parsers/parser-metric.js

Summary

Maintainability
A
2 hrs
Test Coverage

Consider simplifying this complex logical expression.
Open

            if ( !regex ) {
                // stored values
                unit = ( $t.attr('data-metric-name') || base ).split( '|' );
                nameLong = $t.attr( 'data-metric-name-full' ) || '';
                nameAbbr = $t.attr( 'data-metric-name-abbr' ) || '';
Severity: Critical
Found in media/jquery/tablesorter-master/js/parsers/parser-metric.js - About 1 hr to fix

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

            format: function(txt, table, cell, cellIndex) {
                var unit, isBinary, nameLong, nameAbbr,
                    // default base unit name
                    base = 'm|meter',
                    // process number here to get a numerical format (us or eu)
    Severity: Minor
    Found in media/jquery/tablesorter-master/js/parsers/parser-metric.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status