pagseguro/magento2

View on GitHub
view/frontend/web/js/jquery.mask.min.js

Summary

Maintainability
D
2 days
Test Coverage

Function y has 229 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  var y = function (a, e, d) {
    var c = {
      invalid: [],
      getCaret: function () {
        try {
Severity: Major
Found in view/frontend/web/js/jquery.mask.min.js - About 1 day to fix

    File jquery.mask.min.js has 328 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    // jQuery Mask Plugin v1.14.0
    // github.com/igorescobar/jQuery-Mask-Plugin
    (function (b) {
      'function' === typeof define && define.amd
        ? define(['jquery'], b)
    Severity: Minor
    Found in view/frontend/web/js/jquery.mask.min.js - About 3 hrs to fix

      Function getMasked has 50 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

            getMasked: function (a, b) {
              var m = [],
                h = void 0 === b ? c.val() : b + '',
                f = 0,
                l = e.length,
      Severity: Minor
      Found in view/frontend/web/js/jquery.mask.min.js - About 2 hrs to fix

        Function events has 28 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

              events: function () {
                a.on('keydown.mask', function (c) {
                  a.data('mask-keycode', c.keyCode || c.which);
                })
                  .on(
        Severity: Minor
        Found in view/frontend/web/js/jquery.mask.min.js - About 1 hr to fix

          There are no issues that match your filters.

          Category
          Status