phpmyadmin/phpmyadmin

View on GitHub
resources/js/src/server/status/variables.ts

Summary

Maintainability
A
1 hr
Test Coverage

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

    function filterVariables () {
        var usefulLinks = 0;
        var section = text;

        if (categoryFilter.length > 0) {
Severity: Minor
Found in resources/js/src/server/status/variables.ts - About 1 hr to fix

    Consider simplifying this complex logical expression.
    Open

                if ((textFilter === null || textFilter.exec($(this).text())) &&
                    (! alertFilter || $(this).next().find('span.text-danger').length > 0) &&
                    (categoryFilter.length === 0 || $(this).parent().hasClass('s_' + categoryFilter))
                ) {
                    $(this).parent().css('display', '');
    Severity: Major
    Found in resources/js/src/server/status/variables.ts - About 40 mins to fix

      There are no issues that match your filters.

      Category
      Status