wikimedia/mediawiki-core

View on GitHub
resources/src/mediawiki.special.createaccount/signup.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function checkUsername has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function checkUsername( username ) {
        // We could just use .then() if we didn't have to pass on .abort()…
        var d, apiPromise;

        // Leading/trailing/multiple whitespace characters are always stripped in usernames,
Severity: Minor
Found in resources/src/mediawiki.special.createaccount/signup.js - About 1 hr to fix

    Function checkPassword has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function checkPassword() {
            // We could just use .then() if we didn't have to pass on .abort()…
            var apiPromise,
                d = $.Deferred();
    
    
    Severity: Minor
    Found in resources/src/mediawiki.special.createaccount/signup.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status