Showing 179 of 497 total issues
File xpath.js
has 1661 lines of code (exceeds 250 allowed). Consider refactoring. Open
// Copyright 2005 Google Inc.
// All Rights Reserved
//
// An XPath parser and evaluator written in JavaScript. The
// implementation is complete except for functions handling
File wireit-all.js
has 1408 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* This file is auto-generated by src/loader/scripts/meta_join.js */
YUI().use(function(Y) {
var CONFIG = {
groups: {
File wireit-all-debug.js
has 1408 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* This file is auto-generated by src/loader/scripts/meta_join.js */
YUI().use(function(Y) {
var CONFIG = {
groups: {
Function execute
has a Cognitive Complexity of 151 (exceeds 5 allowed). Consider refactoring. Open
execute: function(moduleId,params) {
var moduleBodyEl;
try {
- 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 GroupUtils.js
has 933 lines of code (exceeds 250 allowed). Consider refactoring. Open
(function() {
/**
* Contains utility functions to do with groups (also one or two more general ones)
* @class GroupUtils
File bpmn-2.0.js
has 785 lines of code (exceeds 250 allowed). Consider refactoring. Open
var bpmnLanguage = {
// Set a unique name for the language
languageName: "bpmn2.0",
Function execute
has 307 lines of code (exceeds 25 allowed). Consider refactoring. Open
execute: function(moduleId,params) {
var moduleBodyEl;
try {
Function evaluate
has a Cognitive Complexity of 56 (exceeds 5 allowed). Consider refactoring. Open
StepExpr.prototype.evaluate = function(ctx) {
var input = ctx.node;
var nodelist = [];
var skipNodeTest = false;
- 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 xsltProcessContext
has a Cognitive Complexity of 50 (exceeds 5 allowed). Consider refactoring. Open
function xsltProcessContext(input, template, output) {
var outputDocument = xmlOwnerDocument(output);
var nodename = template.nodeName.split(/:/);
if (nodename.length == 1 || nodename[0] != 'xsl') {
- 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 compare
has a Cognitive Complexity of 50 (exceeds 5 allowed). Consider refactoring. Open
BinaryExpr.prototype.compare = function(ctx, cmp) {
var v1 = this.expr1.evaluate(ctx);
var v2 = this.expr2.evaluate(ctx);
var ret;
- 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 xsltProcessContext
has 187 lines of code (exceeds 25 allowed). Consider refactoring. Open
function xsltProcessContext(input, template, output) {
var outputDocument = xmlOwnerDocument(output);
var nodename = template.nodeName.split(/:/);
if (nodename.length == 1 || nodename[0] != 'xsl') {
File dom.js
has 414 lines of code (exceeds 250 allowed). Consider refactoring. Open
// Copyright 2005 Google Inc.
// All Rights Reserved
//
// Author: Steffen Meschkat <mesch@google.com>
//
Function xmlParse
has a Cognitive Complexity of 38 (exceeds 5 allowed). Consider refactoring. Open
function xmlParse(xml) {
var regex_empty = /\/$/;
var regex_tagname;
var regex_attribute;
- 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 generateUI
has 141 lines of code (exceeds 25 allowed). Consider refactoring. Open
generateUI: function(map, changedCallback)
{
if (!Y.Lang.isValue(map))
map = Y.GroupUtils.getMap(this)
File Group.js
has 397 lines of code (exceeds 250 allowed). Consider refactoring. Open
(function() {
/**
* Handles a Group
* @class Group
File xslt.js
has 395 lines of code (exceeds 250 allowed). Consider refactoring. Open
// Copyright 2005 Google Inc.
// All Rights Reserved
//
//
// An XSL-T processor written in JavaScript. The implementation is NOT
Function expand
has 130 lines of code (exceeds 25 allowed). Consider refactoring. Open
expand: function()
{
//For each module add it to the layer
//For each wire wire up the new containers
//For each internal group add to layer groups, remap from serialised
File ExecutionFrame.js
has 381 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* An "ExecutionFrame" is the equivalent to the jsBox layer.
* It contains a set module instances and a set of wires linking them.
* @class ExecutionFrame
* @constructor
Function generateTerminalMap
has 117 lines of code (exceeds 25 allowed). Consider refactoring. Open
generateTerminalMap: function(group, usedNames, containerMap, groupMap)
{
var self = this;
var mergeTerminalOverrides = function(terminalConfigs, overrides, usedNames, forceVisible, terminalMap)
Function xpathReduce
has a Cognitive Complexity of 30 (exceeds 5 allowed). Consider refactoring. Open
function xpathReduce(stack, ahead) {
var cand = null;
if (stack.length > 0) {
var top = stack[stack.length-1];
- 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"