Showing 159 of 254 total issues
Consider simplifying this complex logical expression. Open
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) {
Function exports
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(api) {
var validEnv = ['development', 'test', 'production']
var currentEnv = api.env()
var isDevelopmentEnv = api.env('development')
var isProductionEnv = api.env('production')
File users_controller.rb
has 269 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
class UsersController < Clearance::UsersController
include ApplicationHelper
before_action :select_bootstrap41
before_action :require_login
Function inputFallBackEvent
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
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) {
Consider simplifying this complex logical expression. Open
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;
Consider simplifying this complex logical expression. Open
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++) {
Consider simplifying this complex logical expression. Open
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),
Function 443
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;
Method volunteer_app_params
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def volunteer_app_params
params.require(:volunteer_app).permit(:name,
:email,
:status,
:phone,
Consider simplifying this complex logical expression. Open
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;
}
Consider simplifying this complex logical expression. Open
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);
Consider simplifying this complex logical expression. Open
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":
Consider simplifying this complex logical expression. Open
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++) {
Function onBeforeWrite
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
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);
Function g
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
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" : ""),
Function determineNewCaretPosition
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
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) {
Method adoption_app_params
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def adoption_app_params
params.require(:adoption_app)
.permit(:adopter_id,
:spouse_name,
:other_household_names,
Function inputmask
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
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();
Function d
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
Consider simplifying this complex logical expression. Open
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, {