wikimedia/mediawiki-extensions-DonationInterface

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

Summary

Maintainability
A
1 hr
Test Coverage

Function onerror has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    window.onerror = function ( message, file, line, col, error ) {
        var i, postdata;
        for ( i = 0; i < ignorePatterns.length; i++ ) {
            if ( ignoreRegexes.length <= i ) {
                // turn patterns into regexes the first time through
Severity: Minor
Found in modules/js/ext.donationInterface.errorLog.js - About 1 hr to fix

    Function onerror has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        window.onerror = function ( message, file, line, col, error ) {
    Severity: Minor
    Found in modules/js/ext.donationInterface.errorLog.js - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status