wikimedia/mediawiki-core

View on GitHub
resources/lib/jquery.client/jquery.client.js

Summary

Maintainability
B
6 hrs
Test Coverage

Function profile has 90 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        profile: function ( nav ) {
            if ( !nav ) {
                nav = window.navigator;
            }

Severity: Major
Found in resources/lib/jquery.client/jquery.client.js - About 3 hrs to fix

    Function test has 48 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            test: function ( map, profile, exactMatchOnly ) {
                var conditions, dir, i, op, val, j, pieceVersion, pieceVal, compare;
                profile = $.isPlainObject( profile ) ? profile : $.client.profile();
                if ( map.ltr && map.rtl ) {
                    dir = $( document.body ).is( '.rtl' ) ? 'rtl' : 'ltr';
    Severity: Minor
    Found in resources/lib/jquery.client/jquery.client.js - About 1 hr to fix

      Avoid too many return statements within this function.
      Open

                  return true;
      Severity: Major
      Found in resources/lib/jquery.client/jquery.client.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                                return false;
        Severity: Major
        Found in resources/lib/jquery.client/jquery.client.js - About 30 mins to fix

          There are no issues that match your filters.

          Category
          Status