Showing 850 of 1,424 total issues
Function 51
has 576 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{}],51:[function(require,module,exports){
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define([], function () {
File particles.js
has 1081 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* -----------------------------------------------
/* Author : Vincent Garreau - vincentgarreau.com
/* MIT license: http://opensource.org/licenses/MIT
/* Demo / Generator : vincentgarreau.com/particles.js
/* GitHub : github.com/VincentGarreau/particles.js
Function factory
has 500 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
}( window, function factory( window, EvEmitter, getSize, utils, Item ) {
'use strict';
// ----- vars ----- //
File Q.Uploader.image.all.js
has 945 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Q.js for Uploader
* author:devin87@qq.com
* update:2015/10/23 14:55
*/
Function factory
has a Cognitive Complexity of 109 (exceeds 5 allowed). Consider refactoring. Open
Open
}( window, function factory( window, EvEmitter, getSize, utils, Item ) {
'use strict';
// ----- vars ----- //
- 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 Q.Uploader.all.js
has 854 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Q.js for Uploader
* author:devin87@qq.com
* update:2015/10/23 14:55
*/
File jquery.atwho.js
has 783 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*! jquery.atwho - v0.5.1 - 2014-10-16
* Copyright (c) 2014 chord.luo <chord.luo@gmail.com>;
* homepage: http://ichord.github.com/At.js
* Licensed MIT
*/
Function factory
has a Cognitive Complexity of 91 (exceeds 5 allowed). Consider refactoring. Open
Open
}( window, function factory( EvEmitter, getSize ) {
'use strict';
// ----- helpers ----- //
- 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 factory
has 331 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
}( window, function factory( EvEmitter, getSize ) {
'use strict';
// ----- helpers ----- //
Function stick_in_parent
has 248 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.stick_in_parent = function(opts) {
var doc, elm, enable_bottoming, fn, i, inner_scrolling, len, manual_spacer, offset_top, outer_width, parent_selector, recalc_every, sticky_class;
if (opts == null) {
opts = {};
}
Function ajax
has 240 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;
File image.js
has 563 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* nodeclub - controllers/Image.js
*/
/**
Function setDocument
has 215 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setDocument = Sizzle.setDocument = function (node) {
var hasCompare,
doc = node ? node.ownerDocument || node : preferredDoc,
parent = doc.defaultView;
File user.js
has 513 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
var User = require('../proxy').User;
var Topic = require('../proxy').Topic;
var Reply = require('../proxy').Reply;
var TopicCollect = require('../proxy').TopicCollect;
var utility = require('utility');
Function apply
has 191 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Defaults.prototype.apply = function (options) {
options = $.extend(true, {}, this.defaults, options);
if (options.dataAdapter == null) {
if (options.ajax != null) {
Function apply
has 191 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Defaults.prototype.apply = function (options) {
options = $.extend(true, {}, this.defaults, options);
if (options.dataAdapter == null) {
if (options.ajax != null) {
Function 27
has 167 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{}],27:[function(require,module,exports){
// Lists
'use strict';
Function 4
has 166 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{}],4:[function(require,module,exports){
// List of valid url schemas, accorting to commonmark spec
// http://jgm.github.io/CommonMark/spec.html#autolinks
'use strict';
Function bind
has 164 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Results.prototype.bind = function (container, $container) {
var self = this;
var id = container.id + '-results';
Function bind
has 164 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Results.prototype.bind = function (container, $container) {
var self = this;
var id = container.id + '-results';