wikimedia/mediawiki-extensions-DonationInterface

View on GitHub
modules/js/ext.donationInterface.monthlyConvert.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function init has 79 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    mc.init = function () {
        var presetAmount,
            locale = $( '#language' ).val() + '-' + $( '#country' ).val();
        originalAmount = +$( '#amount' ).val();
        currency = $( '#currency' ).val();
Severity: Major
Found in modules/js/ext.donationInterface.monthlyConvert.js - About 3 hrs to fix

    Function postMonthlyConvertDonate has 37 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        mc.postMonthlyConvertDonate = function ( amount, declineMonthlyConvert ) {
            var sendData = {
                action: 'di_recurring_convert',
                format: 'json',
                gateway: $( '#gateway' ).val(),
    Severity: Minor
    Found in modules/js/ext.donationInterface.monthlyConvert.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status