wikimedia/mediawiki-extensions-Wikibase

View on GitHub
build/dist-size/web/lib/main.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function plot has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function plot( el, historyData ) {
    const traces = [];
    const annotations = [];

    for ( const fileName in historyData ) {
Severity: Minor
Found in build/dist-size/web/lib/main.js - About 1 hr to fix

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

    function buildSizeDeltaAnnotation( revision ) {
        if ( revision[ CUSTOM_FIELDS.PREVIOUS_SIZE ] === null || revision[ FIELDS.SIZE ] === null ) {
            // inception & removal may be a notable but not with respect to size
            return null;
        }
    Severity: Minor
    Found in build/dist-size/web/lib/main.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status