wikimedia/mediawiki-extensions-UploadWizard

View on GitHub
resources/ui/steps/uw.ui.Thanks.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function UWUIThanks has 72 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    uw.ui.Thanks = function UWUIThanks( config ) {
        var homeButtonTarget,
            homeButtonHref,
            homeButtonUrl,
            thanksMessage,
Severity: Major
Found in resources/ui/steps/uw.ui.Thanks.js - About 2 hrs to fix

    Function addUpload has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        uw.ui.Thanks.prototype.addUpload = function ( upload ) {
            var thumbWikiText, $thanksDiv, $thumbnailWrapDiv, $thumbnailDiv, $thumbnailCaption, $thumbnailLink;
    
            thumbWikiText = '[[' + [
                upload.details.getTitle().getPrefixedText(),
    Severity: Minor
    Found in resources/ui/steps/uw.ui.Thanks.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status