Showing 297 of 342 total issues
File jquery.min.js
has 3469 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*! jQuery v1.8.3 jquery.com | jquery.org/license */
(function(e, t) {
function _(e) {
var t = M[e] = {};
return v.each(e.split(y), function(e, n) {
File jquery.min.js
has 3469 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*! jQuery v1.8.3 jquery.com | jquery.org/license */
(function(e, t) {
function _(e) {
var t = M[e] = {};
return v.each(e.split(y), function(e, n) {
File URI.js
has 1284 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* URI.js - Mutating URLs
*
* Version: 1.8.3
*
File URI.js
has 1284 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* URI.js - Mutating URLs
*
* Version: 1.8.3
*
File sunlight.js
has 884 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* Sunlight
* Intelligent syntax highlighting
*
* http://sunlightjs.com/
File sunlight.js
has 884 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* Sunlight
* Intelligent syntax highlighting
*
* http://sunlightjs.com/
Function prototype
has 420 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Highlighter.prototype = (function() {
var parseNextToken = (function() {
function isIdentMatch(context) {
return context.language.identFirstLetter && context.language.identFirstLetter.test(context.reader.current());
}
Function prototype
has 420 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Highlighter.prototype = (function() {
var parseNextToken = (function() {
function isIdentMatch(context) {
return context.language.identFirstLetter && context.language.identFirstLetter.test(context.reader.current());
}
Consider simplifying this complex logical expression. Open
Open
if (!s || s.nodeType !== 3 && s.nodeType !== 8) {
var u, a, f, l, c, h, p, d, m, g, y = n.type || n,
b = [];
if (Y.test(y + v.event.triggered)) return;
y.indexOf("!") >= 0 && (y = y.slice(0, -1), a = !0), y.indexOf(".") >= 0 && (b = y.split("."), y = b.shift(), b.sort());
Consider simplifying this complex logical expression. Open
Open
if (!s || s.nodeType !== 3 && s.nodeType !== 8) {
var u, a, f, l, c, h, p, d, m, g, y = n.type || n,
b = [];
if (Y.test(y + v.event.triggered)) return;
y.indexOf("!") >= 0 && (y = y.slice(0, -1), a = !0), y.indexOf(".") >= 0 && (b = y.split("."), y = b.shift(), b.sort());
Function publish
has 205 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.publish = function ( taffyData, opts, tutorials ) {
data = taffyData;
conf['default'] = conf['default'] || {};
File prettify.js
has 480 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
var q = null;
window.PR_SHOULD_USE_CONTINUATION = !0;
(function() {
function L(a) {
function m(a) {
File prettify.js
has 480 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
var q = null;
window.PR_SHOULD_USE_CONTINUATION = !0;
(function() {
function L(a) {
function m(a) {
File publish.js
has 470 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
"use strict";
/**
* @module template/publish
* @type {*}
*/
Function exports
has 127 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = (function () {
"use strict";
var forkTimers = {};
var disconnectTimers = {};
Function publish
has a Cognitive Complexity of 31 (exceeds 5 allowed). Consider refactoring. Open
Open
exports.publish = function ( taffyData, opts, tutorials ) {
data = taffyData;
conf['default'] = conf['default'] || {};
- 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 parseNextToken
has 113 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var parseNextToken = (function() {
function isIdentMatch(context) {
return context.language.identFirstLetter && context.language.identFirstLetter.test(context.reader.current());
}
Function parseNextToken
has 113 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var parseNextToken = (function() {
function isIdentMatch(context) {
return context.language.identFirstLetter && context.language.identFirstLetter.test(context.reader.current());
}
Function ajax
has 94 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ajax: function(e, n) {
function T(e, n, s, a) {
var l, y, b, w, S, T = n;
if (E === 2) return;
E = 2, u && clearTimeout(u), o = t, i = a || "", x.readyState = e > 0 ? 4 : 0, s && (w = An(c, x, s));
Function ajax
has 94 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ajax: function(e, n) {
function T(e, n, s, a) {
var l, y, b, w, S, T = n;
if (E === 2) return;
E = 2, u && clearTimeout(u), o = t, i = a || "", x.readyState = e > 0 ? 4 : 0, s && (w = An(c, x, s));