wikimedia/mediawiki-core

View on GitHub
resources/src/mediawiki.tempUserBanner/tempUserBanner.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function initTempUserBannerTooltip has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function initTempUserBannerTooltip( $bannerEl, $tooltipEl, $buttonEl ) {
        if ( !$bannerEl.length || !$tooltipEl.length || !$buttonEl.length ) {
            return;
        }

Severity: Minor
Found in resources/src/mediawiki.tempUserBanner/tempUserBanner.js - About 1 hr to fix

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

            function showTooltip() {
                return mw.loader.using( [
                    'codex-search-styles',
                    'oojs-ui-core',
                    'oojs-ui-widgets',
    Severity: Minor
    Found in resources/src/mediawiki.tempUserBanner/tempUserBanner.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status