Showing 265 of 617 total issues
File plupload.full.min.js
has 3530 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill
* v1.2.0
*
* Copyright 2013, Moxiecode Systems AB
- Create a ticketCreate a ticket
File select2.js
has 2604 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
Copyright 2012 Igor Vaynberg
Version: @@ver@@ Timestamp: @@timestamp@@
- Create a ticketCreate a ticket
File bootstrap-datepicker.js
has 1486 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* =========================================================
* bootstrap-datepicker.js
* Repo: https://github.com/eternicode/bootstrap-datepicker/
* Demo: http://eternicode.github.io/bootstrap-datepicker/
* Docs: http://bootstrap-datepicker.readthedocs.org/
- Create a ticketCreate a ticket
File Install.php
has 935 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* ########################################################################################
* ## CUNITY(R) V2.0 - An open source social network / "your private social network" ##
- Create a ticketCreate a ticket
Function Uploader
has 359 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
}), o.Uploader = function (e) {
function g() {
var e, t = 0, n;
if (this.state == o.STARTED) {
for (n = 0; n < f.length; n++)!e && f[n].status == o.QUEUED ? (e = f[n], this.trigger("BeforeUpload", e) && (e.status = o.UPLOADING, this.trigger("UploadFile", e))) : t++;
- Create a ticketCreate a ticket
File jquery.blueimp-gallery.min.js
has 667 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
!function (a) {
"use strict";
"function" == typeof define && define.amd ? define(["./blueimp-helper"], a) : (window.blueimp = window.blueimp || {}, window.blueimp.Gallery = a(window.blueimp.helper || window.jQuery))
}(function (a) {
"use strict";
- Create a ticketCreate a ticket
File blueimp-gallery.min.js
has 656 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
!function () {
"use strict";
function a(a, b) {
var c;
for (c in b)b.hasOwnProperty(c) && (a[c] = b[c]);
- Create a ticketCreate a ticket
Function n
has 188 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var n = function (e) {
var t = "", n = "?", i = "function", r = "undefined", o = "object", a = "major", s = "model", u = "name", c = "type", l = "vendor", d = "version", f = "architecture", p = "console", h = "mobile", m = "tablet", g = {
has: function (e, t) {
return -1 !== t.toLowerCase().indexOf(e.toLowerCase())
}, lowerize: function (e) {
- Create a ticketCreate a ticket
Function i
has 177 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return function i() {
function i(e, n) {
var i = a.SHORT(e), r, o, s, u, d, f, p, h, m = [], g = {};
for (r = 0; i > r; r++)if (p = f = e + 12 * r + 2, s = n[a.SHORT(p)], s !== t) {
switch (u = a.SHORT(p += 2), d = a.LONG(p += 2), p += 4, m = [], u) {
- Create a ticketCreate a ticket
File calendar.min.js
has 432 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* Bootstrap based calendar full view.
*
* https://github.com/Serhioromano/bootstrap-calendar
*
- Create a ticketCreate a ticket
Function initContainer
has 147 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initContainer: function () {
var selection,
container = this.container,
dropdown = this.dropdown,
- Create a ticketCreate a ticket
Function p
has 146 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function p() {
function i(e) {
e || (e = this.getRuntime().exec.call(this, "Image", "getInfo")), this.size = e.size, this.width = e.width, this.height = e.height, this.type = e.type, this.meta = e.meta, "" === this.name && (this.name = e.name)
}
- Create a ticketCreate a ticket
Function initContainer
has 144 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initContainer: function () {
var selector = ".select2-choices", selection;
this.searchContainer = this.container.find(".select2-search-field");
- Create a ticketCreate a ticket
Function c
has 141 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function c() {
function e() {
if (!E && !y)throw new n.ImageError(n.DOMException.INVALID_STATE_ERR);
return E || y
}
- Create a ticketCreate a ticket
Function prepareOpts
has 140 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
prepareOpts: function (opts) {
var element, select, idKey, ajaxUrl, self = this;
element = opts.element;
- Create a ticketCreate a ticket
Function keydown
has 114 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
keydown: function(e) {
if (this.picker.is(':not(:visible)')) {
if (e.keyCode === 27) // allow escape to hide and re-show picker
this.show();
return;
- Create a ticketCreate a ticket
Function find
has a Cognitive Complexity of 30 (exceeds 5 allowed). Consider refactoring. Open
Open
public function find($queryString)
{
$queryString = trim($queryString);
if (empty($queryString)) {
return ['queryString' => $queryString, 'message' => 'No String'];
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function c
has 110 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function c() {
function e(e, t) {
var n = this, i, r;
i = t.getBlob().getSource(), r = new window.FileReader, r.onload = function () {
t.append(t.getBlobName(), new o(null, {type: i.type, data: r.result})), f.send.call(n, e, t)
- Create a ticketCreate a ticket
Function fill
has 110 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
fill: function() {
var d = new Date(this.viewDate),
year = d.getUTCFullYear(),
month = d.getUTCMonth(),
startYear = this.o.startDate !== -Infinity ? this.o.startDate.getUTCFullYear() : -Infinity,
- Create a ticketCreate a ticket
Function updateResults
has 110 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
updateResults: function (initial) {
var search = this.search,
results = this.results,
opts = this.opts,
data,
- Create a ticketCreate a ticket