Showing 289 of 375 total issues
File qm-trips.js
has 6545 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* jQuery JavaScript Library v2.2.4
* http://jquery.com/
*
* Includes Sizzle.js
File jquery-2.2.4.js
has 6373 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* jQuery JavaScript Library v2.2.4
* http://jquery.com/
*
* Includes Sizzle.js
Function Sizzle
has 1387 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(function( window ) {
var i,
support,
Expr,
Function Sizzle
has 1387 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(function( window ) {
var i,
support,
Expr,
File packery.pkgd.js
has 2209 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* Packery PACKAGED v1.3.2
* bin-packing layout library
* http://packery.metafizzy.co
*
Function NetworkGraph
has 504 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function NetworkGraph(selector, infobox, undoBtn, redoBtn, historyParams) {
var _this = this;
// Basic D3.js SVG container setup
Function outlayerDefinition
has 501 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function outlayerDefinition( eventie, docReady, EventEmitter, getSize, matchesSelector, Item ) {
// -------------------------- Outlayer -------------------------- //
// globally unique identifiers
Function outlayerItemDefinition
has 297 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function outlayerItemDefinition( EventEmitter, getSize, getStyleProperty ) {
// -------------------------- CSS3 support -------------------------- //
var transitionProperty = getStyleProperty('transition');
Function NetworkGraph
has a Cognitive Complexity of 70 (exceeds 5 allowed). Consider refactoring. Open
Open
function NetworkGraph(selector, infobox, undoBtn, redoBtn, historyParams) {
var _this = this;
// Basic D3.js SVG container setup
- Read upRead up
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 packeryDefinition
has 259 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function packeryDefinition( classie, getSize, Outlayer, Rect, Packer, Item ) {
// ----- Rect ----- //
// allow for pixel rounding errors IE8-IE11 & Firefox; #227
Function ajax
has 249 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ajax: function( url, options ) {
// If url is an object, simulate pre-1.5 signature
if ( typeof url === "object" ) {
options = url;
Function ajax
has 249 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ajax: function( url, options ) {
// If url is an object, simulate pre-1.5 signature
if ( typeof url === "object" ) {
options = url;
Function setDocument
has 218 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setDocument = Sizzle.setDocument = function( node ) {
var hasCompare, parent,
doc = node ? node.ownerDocument || node : preferredDoc;
// Return early if doc is invalid or already selected
Function setDocument
has 218 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setDocument = Sizzle.setDocument = function( node ) {
var hasCompare, parent,
doc = node ? node.ownerDocument || node : preferredDoc;
// Return early if doc is invalid or already selected
File network-graph.js
has 507 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// We define $j instead of $ to avoid conflict with annotorious.js
// (see https://learn.jquery.com/using-jquery-core/avoid-conflicts-other-libraries/)
$j = jQuery.noConflict();
function NetworkGraph(selector, infobox, undoBtn, redoBtn, historyParams) {
File jquery.imagesloaded.js
has 445 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* imagesLoaded PACKAGED v3.0.4
* JavaScript is all like "You images are done yet or what?"
*/
Function defineImagesLoaded
has 157 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function defineImagesLoaded( EventEmitter, eventie ) {
/**
* @param {Array, Element, NodeList, String} elem
* @param {Object or Function} options - if function, use as callback
Consider simplifying this complex logical expression. Open
Open
if ( event.pageX == null && original.clientX != null ) {
eventDoc = event.target.ownerDocument || document;
doc = eventDoc.documentElement;
body = eventDoc.body;
Consider simplifying this complex logical expression. Open
Open
if ( event.pageX == null && original.clientX != null ) {
eventDoc = event.target.ownerDocument || document;
doc = eventDoc.documentElement;
body = eventDoc.body;
Function Callbacks
has 121 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jQuery.Callbacks = function( options ) {
// Convert options from String-formatted to Object-formatted if needed
// (we check in cache first)
options = typeof options === "string" ?