wikimedia/mediawiki-extensions-VisualEditor

View on GitHub
modules/ve-mw/ce/nodes/ve.ce.MWImageNode.js

Summary

Maintainability
A
1 hr
Test Coverage

Function generateContents has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

ve.ce.MWImageNode.prototype.generateContents = function () {
    const model = this.getModel(),
        height = model.getAttribute( 'height' ),
        mwData = model.getAttribute( 'mw' ) || {},
        deferred = ve.createDeferred();
Severity: Minor
Found in modules/ve-mw/ce/nodes/ve.ce.MWImageNode.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status