Showing 121 of 186 total issues
Function 62
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
},{"./$.def":24}],62:[function(require,module,exports){
'use strict';
var $ = require('./$')
, isObject = $.isObject
, isFunction = $.isFunction
- 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 5
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
},{}],5:[function(require,module,exports){
"use strict";
var _prototypeProperties = function (child, staticProps, instanceProps) { if (staticProps) Object.defineProperties(child, staticProps); if (instanceProps) Object.defineProperties(child.prototype, instanceProps); };
Function 29
has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring. Open
},{}],29:[function(require,module,exports){
// Fast apply
// http://jsperf.lnkit.com/fast-apply/5
module.exports = function(fn, args, that){
var un = that === undefined;
- 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 exports
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
'babel': {
Function 9
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
},{"../Module.js":4,"./DataSourcesEvents.js":10,"pubsub-js":101}],9:[function(require,module,exports){
"use strict";
var _interopRequire = function (obj) { return obj && obj.__esModule ? obj["default"] : obj; };
Function ArrayDataSource
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
var ArrayDataSource = exports.ArrayDataSource = (function () {
function ArrayDataSource() {
_classCallCheck(this, ArrayDataSource);
this.data = [];
Function ArrayDataSource
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
var ArrayDataSource = exports.ArrayDataSource = (function () {
function ArrayDataSource() {
_classCallCheck(this, ArrayDataSource);
this.data = [];
Function Kronicle
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
var Kronicle = exports.Kronicle = (function () {
function Kronicle() {
_classCallCheck(this, Kronicle);
this.core = null;
Function Kronicle
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
var Kronicle = exports.Kronicle = (function () {
function Kronicle() {
_classCallCheck(this, Kronicle);
this.core = null;
Function 41
has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring. Open
},{"./$":34,"./$.wks":48}],41:[function(require,module,exports){
// true -> String#at
// false -> String#codePointAt
var $ = require('./$');
module.exports = function(TO_STRING){
- 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 9
has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring. Open
},{"../Module.js":4,"./DataSourcesEvents.js":10,"pubsub-js":101}],9:[function(require,module,exports){
"use strict";
var _interopRequire = function (obj) { return obj && obj.__esModule ? obj["default"] : obj; };
- 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 6
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
},{}],6:[function(require,module,exports){
"use strict";
var _prototypeProperties = function (child, staticProps, instanceProps) { if (staticProps) Object.defineProperties(child, staticProps); if (instanceProps) Object.defineProperties(child.prototype, instanceProps); };
Function 22
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
},{"./$":34,"./$.array-methods":15,"./$.assert":16,"./$.for-of":27,"./$.uid":46}],22:[function(require,module,exports){
'use strict';
var $ = require('./$')
, $def = require('./$.def')
, BUGGY = require('./$.iter').BUGGY
Function DataSources
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
var DataSources = exports.DataSources = (function (Module) {
function DataSources() {
var sources = arguments[0] === undefined ? [] : arguments[0];
_classCallCheck(this, DataSources);
Function DataSources
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
var DataSources = exports.DataSources = (function (Module) {
function DataSources() {
var sources = arguments[0] === undefined ? [] : arguments[0];
_classCallCheck(this, DataSources);
Function Component
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
var Component = exports.Component = (function (Module) {
function Component() {
var args = arguments[0] === undefined ? { components: [], template: function () {
return "";
}, name: "" } : arguments[0];
Function Component
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
var Component = exports.Component = (function (Module) {
function Component() {
var args = arguments[0] === undefined ? { components: [], template: function () {
return "";
}, name: "" } : arguments[0];
Function e
has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring. Open
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,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 11
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
},{"../EventTypes.js":2}],11:[function(require,module,exports){
"use strict";
var _prototypeProperties = function (child, staticProps, instanceProps) { if (staticProps) Object.defineProperties(child, staticProps); if (instanceProps) Object.defineProperties(child.prototype, instanceProps); };
Function getConstructor
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
getConstructor: function(NAME, IS_MAP, ADDER){
function C(){
var that = assert.inst(this, C, NAME)
, iterable = arguments[0];
set(that, O1, $.create(null));