Showing 260 of 474 total issues
File jquery.js
has 6532 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*!
* jQuery JavaScript Library v1.8.3
* http://jquery.com/
*
* Includes Sizzle.js
File swagger-ui.js
has 1625 lines of code (exceeds 250 allowed). Consider refactoring. Open
$(function() {
// Helper function for vertically aligning DOM elements
// http://www.seodenver.com/simple-vertical-align-plugin-for-jquery/
$.fn.vAlign = function() {
Function handlebars
has a Cognitive Complexity of 199 (exceeds 5 allowed). Consider refactoring. Open
var handlebars = (function(){
var parser = {trace: function trace() { },
yy: {},
symbols_: {"error":2,"root":3,"program":4,"EOF":5,"statements":6,"simpleInverse":7,"statement":8,"openInverse":9,"closeBlock":10,"openBlock":11,"mustache":12,"partial":13,"CONTENT":14,"COMMENT":15,"OPEN_BLOCK":16,"inMustache":17,"CLOSE":18,"OPEN_INVERSE":19,"OPEN_ENDBLOCK":20,"path":21,"OPEN":22,"OPEN_UNESCAPED":23,"OPEN_PARTIAL":24,"params":25,"hash":26,"DATA":27,"param":28,"STRING":29,"INTEGER":30,"BOOLEAN":31,"hashSegments":32,"hashSegment":33,"ID":34,"EQUALS":35,"pathSegments":36,"SEP":37,"$accept":0,"$end":1},
terminals_: {2:"error",5:"EOF",14:"CONTENT",15:"COMMENT",16:"OPEN_BLOCK",18:"CLOSE",19:"OPEN_INVERSE",20:"OPEN_ENDBLOCK",22:"OPEN",23:"OPEN_UNESCAPED",24:"OPEN_PARTIAL",27:"DATA",29:"STRING",30:"INTEGER",31:"BOOLEAN",34:"ID",35:"EQUALS",37:"SEP"},
- 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 bootstrap.js
has 1514 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* ===================================================
* bootstrap-transition.js v2.3.1
* http://twitter.github.com/bootstrap/javascript.html#transitions
* ===================================================
* Copyright 2012 Twitter, Inc.
File handlebars-1.0.rc.1.js
has 1432 lines of code (exceeds 250 allowed). Consider refactoring. Open
// lib/handlebars/base.js
/*jshint eqnull:true*/
this.Handlebars = {};
File jquery.weekcalendar.js
has 1032 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* jQuery.weekCalendar v1.2.3-pre
* http://www.redredred.com.au/
*
* Requires:
File markdown.js
has 999 lines of code (exceeds 250 allowed). Consider refactoring. Open
// Released under MIT license
// Copyright (c) 2009-2010 Dominic Baggott
// Copyright (c) 2009-2010 Ash Berlin
// Copyright (c) 2011 Christoph Dorn <christoph@christophdorn.com> (http://www.christophdorn.com)
Function handlebars
has 438 lines of code (exceeds 25 allowed). Consider refactoring. Open
var handlebars = (function(){
var parser = {trace: function trace() { },
yy: {},
symbols_: {"error":2,"root":3,"program":4,"EOF":5,"statements":6,"simpleInverse":7,"statement":8,"openInverse":9,"closeBlock":10,"openBlock":11,"mustache":12,"partial":13,"CONTENT":14,"COMMENT":15,"OPEN_BLOCK":16,"inMustache":17,"CLOSE":18,"OPEN_INVERSE":19,"OPEN_ENDBLOCK":20,"path":21,"OPEN":22,"OPEN_UNESCAPED":23,"OPEN_PARTIAL":24,"params":25,"hash":26,"DATA":27,"param":28,"STRING":29,"INTEGER":30,"BOOLEAN":31,"hashSegments":32,"hashSegment":33,"ID":34,"EQUALS":35,"pathSegments":36,"SEP":37,"$accept":0,"$end":1},
terminals_: {2:"error",5:"EOF",14:"CONTENT",15:"COMMENT",16:"OPEN_BLOCK",18:"CLOSE",19:"OPEN_INVERSE",20:"OPEN_ENDBLOCK",22:"OPEN",23:"OPEN_UNESCAPED",24:"OPEN_PARTIAL",27:"DATA",29:"STRING",30:"INTEGER",31:"BOOLEAN",34:"ID",35:"EQUALS",37:"SEP"},
Function dialogPolyfill
has a Cognitive Complexity of 107 (exceeds 5 allowed). Consider refactoring. Open
var dialogPolyfill = (function() {
var addEventListenerFn = (window.document.addEventListener
? function(element, type, fn) { element.addEventListener(type, fn); }
: function(element, type, fn) { element.attachEvent('on' + type, fn); });
- 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 bootstrap-markdown.js
has 684 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* ===================================================
* bootstrap-markdown.js v1.1.4
* http://github.com/toopay/bootstrap-markdown
* ===================================================
* Copyright 2013 Taufan Aditya
File swagger.js
has 684 lines of code (exceeds 250 allowed). Consider refactoring. Open
// Generated by CoffeeScript 1.4.0
(function() {
var SwaggerApi, SwaggerModel, SwaggerModelProperty, SwaggerOperation, SwaggerRequest, SwaggerResource,
__bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
Function ColumnView
has 286 lines of code (exceeds 25 allowed). Consider refactoring. Open
var ColumnView = (function() {
"use strict";
var keyCodes, _slice, transformPrefix;
File all.js
has 631 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* classList.js: Cross-browser full element.classList implementation.
* 2012-11-15
*
* By Eli Grey, http://eligrey.com
Function ColumnView
has a Cognitive Complexity of 65 (exceeds 5 allowed). Consider refactoring. Open
var ColumnView = (function() {
"use strict";
var keyCodes, _slice, transformPrefix;
- 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 dialogPolyfill
has 250 lines of code (exceeds 25 allowed). Consider refactoring. Open
var dialogPolyfill = (function() {
var addEventListenerFn = (window.document.addEventListener
? function(element, type, fn) { element.addEventListener(type, fn); }
: function(element, type, fn) { element.attachEvent('on' + type, fn); });
Function ajax
has 240 lines of code (exceeds 25 allowed). Consider refactoring. Open
ajax: function( url, options ) {
// If url is an object, simulate pre-1.5 signature
if ( typeof url === "object" ) {
options = url;
Function lexer
has 229 lines of code (exceeds 25 allowed). Consider refactoring. Open
var lexer = (function(){
var lexer = ({EOF:1,
parseError:function parseError(str, hash) {
if (this.yy.parser) {
this.yy.parser.parseError(str, hash);
Function lists
has 156 lines of code (exceeds 25 allowed). Consider refactoring. Open
lists: (function( ) {
// Use a closure to hide a few variables.
var any_list = "[*+-]|\\d+\\.",
bullet_list = /[*+-]/,
number_list = /\d+\./,
Function toMarkdown
has 145 lines of code (exceeds 25 allowed). Consider refactoring. Open
var toMarkdown = function(string) {
var ELEMENTS = [
{
patterns: 'p',
Function support
has 143 lines of code (exceeds 25 allowed). Consider refactoring. Open
jQuery.support = (function() {
var support,
all,
a,