pagseguro/magento2

View on GitHub
view/frontend/web/js/vanillamasker.min.js

Summary

Maintainability
A
1 hr
Test Coverage

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

        (i.toMoney = function(a, b) {
            if (((b = f(b)), b.zeroCents)) {
                b.lastOutput = b.lastOutput || '';
                var c = '(' + b.separator + '[0]{0,' + b.precision + '})',
                    d = new RegExp(c, 'g'),
Severity: Minor
Found in view/frontend/web/js/vanillamasker.min.js - About 1 hr to fix

    Consider simplifying this complex logical expression.
    Open

                    if (
                        (j[f] === a && k[m].match(/[0-9]/)) ||
                        (j[f] === b && k[m].match(/[a-zA-Z]/)) ||
                        (j[f] === c && k[m].match(/[0-9a-zA-Z]/))
                    )
    Severity: Major
    Found in view/frontend/web/js/vanillamasker.min.js - About 40 mins to fix

      There are no issues that match your filters.

      Category
      Status