ophrescue/RescueRails

View on GitHub

Showing 159 of 254 total issues

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

    Function exports has 66 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    module.exports = function(api) {
      var validEnv = ['development', 'test', 'production']
      var currentEnv = api.env()
      var isDevelopmentEnv = api.env('development')
      var isProductionEnv = api.env('production')
    Severity: Major
    Found in babel.config.js - About 2 hrs to fix

      File users_controller.rb has 269 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      class UsersController < Clearance::UsersController
        include ApplicationHelper
      
        before_action :select_bootstrap41
        before_action :require_login
      Severity: Minor
      Found in app/controllers/users_controller.rb - About 2 hrs to fix

        Function inputFallBackEvent has 60 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                            inputFallBackEvent: function(e) {
                                var t = this.inputmask, a = t.opts, i = t.dependencyLib;
                                var s = this, f = s.inputmask._valueGet(!0), d = (t.isRTL ? n.getBuffer.call(t).slice().reverse() : n.getBuffer.call(t)).join(""), p = n.caret.call(t, s, void 0, void 0, !0);
                                if (d !== f) {
                                    var h = function(e, i, r) {
        Severity: Major
        Found in app/assets/javascripts/jquery.inputmask.js - About 2 hrs to fix

          Consider simplifying this complex logical expression.
          Open

                                      if (t = function(e, t, a, i, n) {
                                          return n._radixDance && n.numericInput && t !== n.negationSymbol.back && e <= a && (a > 0 || t == n.radixPoint) && (void 0 === i.validPositions[e - 1] || i.validPositions[e - 1].input !== n.negationSymbol.back) && (e -= 1),
                                          e;
                                      }(t, a, p, r, n), "-" === a || a === n.negationSymbol.front) {
                                          if (!0 !== n.allowMinus) return !1;
          Severity: Critical
          Found in app/assets/javascripts/jquery.inputmask.js - About 2 hrs to fix

            Consider simplifying this complex logical expression.
            Open

                                                if (-1 === T || "string" == typeof T) {
                                                    var A, C = d, D = a.slice(), B = [];
                                                    if ("string" == typeof T) B = T.split(","); else for (A = 0; A < S.matches.length; A++) B.push(A.toString());
                                                    if (void 0 !== s.excludes[e]) {
                                                        for (var j = B.slice(), R = 0, L = s.excludes[e].length; R < L; R++) {
            Severity: Critical
            Found in app/assets/javascripts/jquery.inputmask.js - About 2 hrs to fix

              Consider simplifying this complex logical expression.
              Open

                                  if (!1 !== f) {
                                      e.originalPlaceholder = a.placeholder, e.maxLength = void 0 !== a ? a.maxLength : void 0,
                                      -1 === e.maxLength && (e.maxLength = void 0), "inputMode" in a && null === a.getAttribute("inputmode") && (a.inputMode = t.inputmode,
                                      a.setAttribute("inputmode", t.inputmode)), !0 === f && (t.showMaskOnFocus = t.showMaskOnFocus && -1 === [ "cc-number", "cc-exp" ].indexOf(a.autocomplete),
                                      l.iphone && (t.insertModeVisual = !1), s.EventRuler.on(a, "submit", c.EventHandlers.submitEvent),
              Severity: Critical
              Found in app/assets/javascripts/jquery.inputmask.js - About 2 hrs to fix

                Function 443 has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                            443: function(e, t, a) {
                                var i = o(a(8254)), n = o(a(2394));
                                function r(e) {
                                    return (r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
                                        return typeof e;
                Severity: Major
                Found in app/assets/javascripts/jquery.inputmask.js - About 2 hrs to fix

                  Method volunteer_app_params has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    def volunteer_app_params
                      params.require(:volunteer_app).permit(:name,
                                                            :email,
                                                            :status,
                                                            :phone,
                  Severity: Major
                  Found in app/controllers/volunteer_apps_controller.rb - About 2 hrs to fix

                    Consider simplifying this complex logical expression.
                    Open

                                            if (void 0 !== i && !0 === i.match.static && !0 !== i.match.optionality && (void 0 === t[0] || void 0 === t[0].alternation)) {
                                                var n = a.begin <= e - 1 ? t[e - 1] && !0 === t[e - 1].match.static && t[e - 1] : t[e - 1], r = a.end > e + 1 ? t[e + 1] && !0 === t[e + 1].match.static && t[e + 1] : t[e + 1];
                                                return n && r;
                                            }
                    Severity: Critical
                    Found in app/assets/javascripts/jquery.inputmask.js - About 2 hrs to fix

                      Consider simplifying this complex logical expression.
                      Open

                                                  if (function(e, t, a, i) {
                                                      function o(t, n) {
                                                          var o = "" === i ? t : i + "-" + t;
                                                          null !== (n = void 0 !== n ? n : e.getAttribute(o)) && ("string" == typeof n && (0 === t.indexOf("on") ? n = r.default[n] : "false" === n ? n = !1 : "true" === n && (n = !0)),
                                                          a[t] = n);
                      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 && (t = {}), "string" == typeof e) switch (e) {
                                              case "unmaskedvalue":
                                                return o && o.inputmask ? o.inputmask.unmaskedvalue() : (0, i.default)(o).val();
                        
                                              case "remove":
                        Severity: Critical
                        Found in app/assets/javascripts/jquery.inputmask.js - About 2 hrs to fix

                          Consider simplifying this complex logical expression.
                          Open

                                              if (e.begin > e.end && (h = e.end, m = e.begin), i = void 0 !== i ? i : h, h !== m || l.insertMode && void 0 !== s.validPositions[i] && void 0 === a || void 0 === t) {
                                                  var g, k = u.extend(!0, {}, s.validPositions), y = o.getLastValidPosition.call(r, void 0, !0);
                                                  for (s.p = h, g = y; g >= h; g--) delete s.validPositions[g], void 0 === t && delete s.tests[g + 1];
                                                  var b, x, P = i, E = P;
                                                  for (t && (s.validPositions[i] = u.extend(!0, {}, t), E++, P++), g = t ? m : m - 1; g <= y; g++) {
                          Severity: Critical
                          Found in app/assets/javascripts/jquery.inputmask.js - About 2 hrs to fix

                            Function onBeforeWrite has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                                    onBeforeWrite: function(e, t, a, i) {
                                                        function n(e, t) {
                                                            if (!1 !== i.__financeInput || t) {
                                                                var a = e.indexOf(i.radixPoint);
                                                                -1 !== a && e.splice(a, 1);
                            Severity: Minor
                            Found in app/assets/javascripts/jquery.inputmask.js - About 1 hr to fix

                              Function g has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                                  function g(e, i, n) {
                                                      n = void 0 !== n ? n : e.matches.length;
                                                      var r = e.matches[n - 1];
                                                      if (t) 0 === i.indexOf("[") || d && /\\d|\\s|\\w]/i.test(i) || "." === i ? e.matches.splice(n++, 0, {
                                                          fn: new RegExp(i, a.casing ? "i" : ""),
                              Severity: Minor
                              Found in app/assets/javascripts/jquery.inputmask.js - About 1 hr to fix

                                Function determineNewCaretPosition has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                                }, t.determineNewCaretPosition = function(e, t, a) {
                                                    var n = this, u = this.maskset, c = this.opts;
                                                    t && (n.isRTL ? e.end = e.begin : e.begin = e.end);
                                                    if (e.begin === e.end) {
                                                        switch (a = a || c.positionCaretOnClick) {
                                Severity: Minor
                                Found in app/assets/javascripts/jquery.inputmask.js - About 1 hr to fix

                                  Method adoption_app_params has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    def adoption_app_params
                                      params.require(:adoption_app)
                                        .permit(:adopter_id,
                                                :spouse_name,
                                                :other_household_names,
                                  Severity: Minor
                                  Found in app/controllers/adoption_app_controller.rb - About 1 hr to fix

                                    Function inputmask has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                                    void 0 === i.default.fn.inputmask && (i.default.fn.inputmask = function(e, t) {
                                                        var a, o = this[0];
                                                        if (void 0 === t && (t = {}), "string" == typeof e) switch (e) {
                                                          case "unmaskedvalue":
                                                            return o && o.inputmask ? o.inputmask.unmaskedvalue() : (0, i.default)(o).val();
                                    Severity: Minor
                                    Found in app/assets/javascripts/jquery.inputmask.js - About 1 hr to fix

                                      Function d has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                                      function d(e, t, a, i, n) {
                                                          var l = e ? e.inputmask : this, c = l.maskset, f = l.opts, d = l.dependencyLib, h = i.slice(), m = "", v = -1, g = void 0, k = f.skipOptionalPartCharacter;
                                                          f.skipOptionalPartCharacter = "", o.resetMaskSet.call(l), c.tests = {}, v = f.radixPoint ? o.determineNewCaretPosition.call(l, {
                                                              begin: 0,
                                                              end: 0
                                      Severity: Minor
                                      Found in app/assets/javascripts/jquery.inputmask.js - About 1 hr to fix

                                        Consider simplifying this complex logical expression.
                                        Open

                                                        if (o.default && h && h.head && h.head.attachShadow && n.default.customElements && void 0 === n.default.customElements.get("input-mask")) {
                                                            var m = function(e) {
                                                                !function(e, t) {
                                                                    if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
                                                                    e.prototype = Object.create(t && t.prototype, {
                                        Severity: Critical
                                        Found in app/assets/javascripts/jquery.inputmask.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language