Showing 340 of 6,870 total issues
Function Handlebars
has a Cognitive Complexity of 941 (exceeds 5 allowed). Consider refactoring. Open
var Handlebars = (function() {
// handlebars/safe-string.js
var __module4__ = (function() {
"use strict";
var __exports__;
- 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 conceptDetails
has 2327 lines of code (exceeds 25 allowed). Consider refactoring. Open
function conceptDetails(divElement, conceptId, options) {
if (typeof componentsRegistry == "undefined") {
componentsRegistry = [];
}
Function runInContext
has 2277 lines of code (exceeds 25 allowed). Consider refactoring. Open
function runInContext(context) {
// Avoid issues with some ES3 environments that attempt to use values, named
// after built-in constructors like `Object`, for the creation of literals.
// ES5 clears this up by stating that literals must use built-in constructors.
// See http://es5.github.io/#x11.1.5.
Function Handlebars
has 2057 lines of code (exceeds 25 allowed). Consider refactoring. Open
var Handlebars = (function() {
// handlebars/safe-string.js
var __module4__ = (function() {
"use strict";
var __exports__;
Function updateCanvas
has 1530 lines of code (exceeds 25 allowed). Consider refactoring. Open
this.updateCanvas = function() {
// $("#members-" + panel.divElement.id).html("");
$("#home-children-cant-" + panel.divElement.id).html("");
$('.more-fields-button').popover('hide');
if (conceptRequested == panel.conceptId) {
File lodash.js
has 2517 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* @license
* Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/>
* Build: `lodash modern -o ./dist/lodash.js`
* Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
File conceptDetailsPlugin.js
has 2375 lines of code (exceeds 250 allowed). Consider refactoring. Open
$(function() {
$.extend($.fn.disableTextSelect = function() {
return this.each(function() {
$(this).mousedown(function() {
return false;
Function queryComputerPanel
has 1266 lines of code (exceeds 25 allowed). Consider refactoring. Open
function queryComputerPanel(divElement, options) {
var panel = this;
panel.showId = false;
var limit = 100;
var skip = 0;
Function searchPanel
has a Cognitive Complexity of 304 (exceeds 5 allowed). Consider refactoring. Open
function searchPanel(divElement, options) {
var thread = null;
var panel = this;
var lastT = "";
var xhr = null;
- 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
File handlebars-v1.3.0.js
has 2059 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*!
handlebars v1.3.0
Copyright (C) 2011 by Yehuda Katz
Function searchPanel
has 1123 lines of code (exceeds 25 allowed). Consider refactoring. Open
function searchPanel(divElement, options) {
var thread = null;
var panel = this;
var lastT = "";
var xhr = null;
Function queryComputerPanel
has a Cognitive Complexity of 238 (exceeds 5 allowed). Consider refactoring. Open
function queryComputerPanel(divElement, options) {
var panel = this;
panel.showId = false;
var limit = 100;
var skip = 0;
- 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
File ZeroClipboard.js
has 1634 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*!
* ZeroClipboard
* The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.
* Copyright (c) 2014 Jon Rohan, James M. Greene
* Licensed MIT
Function taxonomyPanel
has 783 lines of code (exceeds 25 allowed). Consider refactoring. Open
function taxonomyPanel(divElement, conceptId, options) {
var nodeCount = 0;
var panel = this;
var xhr = null;
if (typeof componentsRegistry == "undefined") {
File queryPlugin.js
has 1268 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* Created by termmed on 9/1/14.
*/
function queryComputerPanel(divElement, options) {
Function setUpPanel
has 660 lines of code (exceeds 25 allowed). Consider refactoring. Open
this.setUpPanel = function() {
var context = {
divElementId: panel.divElement.id,
examples: [{
title: "All excision procedures that are also procedures on the digestive system",
File bootstrap.js
has 1256 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*!
* Bootstrap v3.1.0 (http://getbootstrap.com)
* Copyright 2011-2014 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
Function __module11__
has 609 lines of code (exceeds 25 allowed). Consider refactoring. Open
var __module11__ = (function(__dependency1__, __dependency2__) {
"use strict";
var __exports__;
var COMPILER_REVISION = __dependency1__.COMPILER_REVISION;
var REVISION_CHANGES = __dependency1__.REVISION_CHANGES;
File searchPlugin.js
has 1159 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
Function search
has 594 lines of code (exceeds 25 allowed). Consider refactoring. Open
this.search = function(t, skipTo, returnLimit, forceSearch) {
if (typeof panel.options.searchMode == "undefined") {
panel.options.searchMode = "partialMatching";
}
if (typeof panel.options.semTagFilter == "undefined") {