Showing 159 of 254 total issues
Function 157
has 111 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;
Consider simplifying this complex logical expression. Open
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) {
Function 5296
has 108 lines of code (exceeds 25 allowed). Consider refactoring. Open
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) {
Function 7760
has 106 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;
Function mask
has 104 lines of code (exceeds 25 allowed). Consider refactoring. Open
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);
Consider simplifying this complex logical expression. Open
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(),
Function 3851
has 95 lines of code (exceeds 25 allowed). Consider refactoring. Open
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({
Consider simplifying this complex logical expression. Open
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;
Function f
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;
}
Class Dog
has 27 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class Dog < ApplicationRecord
audited
include Filterable
include Flaggable
include ClientValidated
Method adopter_params
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def adopter_params
params.require(:adopter).permit(:name,
:email,
:secondary_email,
:phone,
Class Cat
has 26 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class Cat < ApplicationRecord
audited
include Filterable
include Flaggable
include ClientValidated
Consider simplifying this complex logical expression. Open
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
Function f
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
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");
Function postValidation
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
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,
Function 9716
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
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);
Function preValidation
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
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({
Function 3976
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
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 : {
Consider simplifying this complex logical expression. Open
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();
Consider simplifying this complex logical expression. Open
Open
if ("" !== a.inputmask._valueGet(!0) || !1 === t.clearMaskOnLostFocus || d === a) {
(0, o.applyInputValue)(a, a.inputmask._valueGet(!0), t);
var p = r.getBuffer.call(e).slice();
!1 === u.isComplete.call(e, p) && t.clearIncomplete && r.resetMaskSet.call(e), t.clearMaskOnLostFocus && d !== a && (-1 === r.getLastValidPosition.call(e) ? p = [] : o.clearOptionalTail.call(e, p)),
(!1 === t.clearMaskOnLostFocus || t.showMaskOnFocus && d === a || "" !== a.inputmask._valueGet(!0)) && (0,