wikimedia/mediawiki-extensions-VisualEditor

View on GitHub
modules/ve-mw/ui/widgets/ve.ui.MWEditSummaryWidget.js

Summary

Maintainability
A
1 hr
Test Coverage

Function getSummaries has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

ve.ui.MWEditSummaryWidget.prototype.getSummaries = function () {
    const splitSummary = this.constructor.static.splitSummary.bind( this.constructor.static );
    if ( !this.getSummariesPromise ) {
        if ( mw.user.isAnon() ) {
            this.getSummariesPromise = ve.createDeferred().resolve( [] ).promise();
Severity: Minor
Found in modules/ve-mw/ui/widgets/ve.ui.MWEditSummaryWidget.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status