ophrescue/RescueRails

View on GitHub

Showing 159 of 254 total issues

Function 157 has 111 lines of code (exceeds 25 allowed). Consider refactoring.
Open

            157: function(e, t, a) {
                Object.defineProperty(t, "__esModule", {
                    value: !0
                }), t.mask = function() {
                    var e = this, t = this.opts, a = this.el, i = this.dependencyLib;
Severity: Major
Found in app/assets/javascripts/jquery.inputmask.js - About 4 hrs to fix

    Consider simplifying this complex logical expression.
    Open

                        if ("function" == typeof k.preValidation && !0 !== i && !0 !== s && (S = P(S = k.preValidation.call(v, o.getBuffer.call(v), x, t, b(e), k, y, e, a || r))),
                        !0 === S) {
                            if (S = E(x, t, a), (!a || !0 === i) && !1 === S && !0 !== s) {
                                var _ = y.validPositions[x];
                                if (!_ || !0 !== _.match.static || _.match.def !== t && t !== k.skipOptionalPartCharacter) {
    Severity: Critical
    Found in app/assets/javascripts/jquery.inputmask.js - About 4 hrs to fix

      Function 5296 has 108 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                  5296: function(e, t, a) {
                      function i(e) {
                          return (i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
                              return typeof e;
                          } : function(e) {
      Severity: Major
      Found in app/assets/javascripts/jquery.inputmask.js - About 4 hrs to fix

        Function 7760 has 106 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                    7760: function(e, t, a) {
                        Object.defineProperty(t, "__esModule", {
                            value: !0
                        }), t.applyInputValue = c, t.clearOptionalTail = f, t.checkVal = d, t.HandleNativePlaceholder = function(e, t) {
                            var a = e ? e.inputmask : this;
        Severity: Major
        Found in app/assets/javascripts/jquery.inputmask.js - About 4 hrs to fix

          Function mask has 104 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                          }), t.mask = function() {
                              var e = this, t = this.opts, a = this.el, i = this.dependencyLib;
                              s.EventRuler.off(a);
                              var f = function(t, a) {
                                  "textarea" !== t.tagName.toLowerCase() && a.ignorables.push(n.default.ENTER);
          Severity: Major
          Found in app/assets/javascripts/jquery.inputmask.js - About 4 hrs to fix

            Consider simplifying this complex logical expression.
            Open

                                    s.handleRemove.call(t, f, p, h), (0, l.writeBuffer)(f, n.getBuffer.call(t, !0), c.p, e, f.inputmask._valueGet() !== n.getBuffer.call(t).join("")); else if (p === r.default.END || p === r.default.PAGE_DOWN) {
                                        e.preventDefault();
                                        var v = n.seekNext.call(t, n.getLastValidPosition.call(t));
                                        n.caret.call(t, f, e.shiftKey ? h.begin : v, v, !0);
                                    } else p === r.default.HOME && !e.shiftKey || p === r.default.PAGE_UP ? (e.preventDefault(),
            Severity: Critical
            Found in app/assets/javascripts/jquery.inputmask.js - About 4 hrs to fix

              Function 3851 has 95 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                          3851: function(e, t, a) {
                              var i, n = (i = a(2394)) && i.__esModule ? i : {
                                  default: i
                              }, r = a(8711), o = a(4713);
                              n.default.extendDefinitions({
              Severity: Major
              Found in app/assets/javascripts/jquery.inputmask.js - About 3 hrs to fix

                Consider simplifying this complex logical expression.
                Open

                                            if (o.getBuffer.call(v, !0), !1 !== (s = (!f.jit || void 0 !== y.validPositions[o.seekPrevious.call(v, t)]) && (null != f.fn ? f.fn.test(a, y, t, r, k, b(e)) : (a === f.def || a === k.skipOptionalPartCharacter) && "" !== f.def && {
                                                c: n.getPlaceholder.call(v, t, f, !0) || f.def,
                                                pos: t
                                            }))) {
                                                var d = void 0 !== s.c ? s.c : a, p = t;
                Severity: Critical
                Found in app/assets/javascripts/jquery.inputmask.js - About 3 hrs to fix

                  Function f has 82 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                                  function f(e, t, a, i, r, s, d) {
                                      var v = this, g = this.dependencyLib, k = this.opts, y = v.maskset;
                                      function b(e) {
                                          return v.isRTL ? e.begin - e.end > 1 || e.begin - e.end == 1 : e.end - e.begin > 1 || e.end - e.begin == 1;
                                      }
                  Severity: Major
                  Found in app/assets/javascripts/jquery.inputmask.js - About 3 hrs to fix

                    Class Dog has 27 methods (exceeds 20 allowed). Consider refactoring.
                    Open

                    class Dog < ApplicationRecord
                      audited
                      include Filterable
                      include Flaggable
                      include ClientValidated
                    Severity: Minor
                    Found in app/models/dog.rb - About 3 hrs to fix

                      Method adopter_params has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        def adopter_params
                          params.require(:adopter).permit(:name,
                                                          :email,
                                                          :secondary_email,
                                                          :phone,
                      Severity: Major
                      Found in app/controllers/adopters_controller.rb - About 3 hrs to fix

                        Consider simplifying this complex logical expression.
                        Open

                                                    if (!1 === i && (((l = P(t + 1, n)).targetMatch && l.targetMatchIndex === t && l.targetMatch[0].length > 1 && void 0 !== f[l.targetMatch[0]] || (l = P(t + 2, n)).targetMatch && l.targetMatchIndex === t + 1 && l.targetMatch[0].length > 1 && void 0 !== f[l.targetMatch[0]]) && (u = f[l.targetMatch[0]][0]),
                                                    void 0 !== u && (void 0 !== r.validPositions[t + 1] && new RegExp(u).test(a + "0") ? (e[t] = a,
                                                    e[t + 1] = "0", i = {
                                                        pos: t + 2,
                                                        caret: t
                        Severity: Critical
                        Found in app/assets/javascripts/jquery.inputmask.js - About 3 hrs to fix

                          Function f has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                              var f = function(t, a) {
                                                  "textarea" !== t.tagName.toLowerCase() && a.ignorables.push(n.default.ENTER);
                                                  var l = t.getAttribute("type"), u = "input" === t.tagName.toLowerCase() && a.supportsInputType.includes(l) || t.isContentEditable || "textarea" === t.tagName.toLowerCase();
                                                  if (!u) if ("input" === t.tagName.toLowerCase()) {
                                                      var c = document.createElement("input");
                          Severity: Major
                          Found in app/assets/javascripts/jquery.inputmask.js - About 3 hrs to fix

                            Class Cat has 26 methods (exceeds 20 allowed). Consider refactoring.
                            Open

                            class Cat < ApplicationRecord
                              audited
                              include Filterable
                              include Flaggable
                              include ClientValidated
                            Severity: Minor
                            Found in app/models/cat.rb - About 3 hrs to fix

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

                                                      postValidation: function(e, t, a, i, n, r, o, s) {
                                                          var l, u;
                                                          if (o) return !0;
                                                          if (!1 === i && (((l = P(t + 1, n)).targetMatch && l.targetMatchIndex === t && l.targetMatch[0].length > 1 && void 0 !== f[l.targetMatch[0]] || (l = P(t + 2, n)).targetMatch && l.targetMatchIndex === t + 1 && l.targetMatch[0].length > 1 && void 0 !== f[l.targetMatch[0]]) && (u = f[l.targetMatch[0]][0]),
                                                          void 0 !== u && (void 0 !== r.validPositions[t + 1] && new RegExp(u).test(a + "0") ? (e[t] = a,
                              Severity: Major
                              Found in app/assets/javascripts/jquery.inputmask.js - About 2 hrs to fix

                                Function 3976 has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                            3976: function(e, t, a) {
                                                Object.defineProperty(t, "__esModule", {
                                                    value: !0
                                                }), t.default = void 0;
                                                var i, n = (i = a(4528)) && i.__esModule ? i : {
                                Severity: Major
                                Found in app/assets/javascripts/jquery.inputmask.js - About 2 hrs to fix

                                  Function preValidation has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                                          preValidation: function(e, t, a, i, n, r, o, s) {
                                                              var l;
                                                              if (!1 !== n.__financeInput && a === n.radixPoint) return !1;
                                                              if (l = n.shortcuts && n.shortcuts[a]) {
                                                                  if (l.length > 1) for (var u = [], c = 0; c < l.length; c++) u.push({
                                  Severity: Major
                                  Found in app/assets/javascripts/jquery.inputmask.js - About 2 hrs to fix

                                    Function 9716 has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                                9716: function(e, t, a) {
                                                    Object.defineProperty(t, "__esModule", {
                                                        value: !0
                                                    }), t.EventRuler = void 0;
                                                    var i = s(a(2394)), n = s(a(4528)), r = a(8711), o = a(7760);
                                    Severity: Major
                                    Found in app/assets/javascripts/jquery.inputmask.js - About 2 hrs to fix

                                      Consider simplifying this complex logical expression.
                                      Open

                                                                      if ([ "submit", "reset", "setvalue" ].includes(t.type) || "FORM" === this.nodeName || !(u.disabled || u.readOnly && !("keydown" === t.type && t.ctrlKey && 67 === t.keyCode || !1 === f.tabThrough && t.keyCode === n.default.TAB))) {
                                                                          switch (t.type) {
                                                                            case "input":
                                                                              if (!0 === c.skipInputEvent || t.inputType && "insertCompositionText" === t.inputType) return c.skipInputEvent = !1,
                                                                              t.preventDefault();
                                      Severity: Critical
                                      Found in app/assets/javascripts/jquery.inputmask.js - About 2 hrs to fix

                                        Consider simplifying this complex logical expression.
                                        Open

                                                                if (void 0 === t) {
                                                                    for (var k, y = e - 1; void 0 === (k = s.validPositions[y] || s.tests[y]) && y > -1; ) y--;
                                                                    void 0 !== k && y > -1 && (p = function(e, t) {
                                                                        var a, i = [];
                                                                        return Array.isArray(t) || (t = [ t ]), t.length > 0 && (void 0 === t[0].alternation || !0 === u.keepStatic ? 0 === (i = o.call(n, e, t.slice()).locator.slice()).length && (i = t[0].locator.slice()) : t.forEach((function(e) {
                                        Severity: Critical
                                        Found in app/assets/javascripts/jquery.inputmask.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language