wikimedia/mediawiki-core

View on GitHub
resources/src/mediawiki.special.block.js

Summary

Maintainability
A
1 hr
Test Coverage

Function updateBlockOptions has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        function updateBlockOptions() {
            var blocktarget = blockTargetWidget.getValue().trim(),
                isEmpty = blocktarget === '',
                isIp = mw.util.isIPAddress( blocktarget, true ),
                isNonEmptyIp = isIp && !isEmpty,
Severity: Minor
Found in resources/src/mediawiki.special.block.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status