Showing 167 of 296 total issues
Function open
has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring. Open
open: function(position) {
var popups = Ergo.context._popups;
// в эксклюзивном режиме закрываем другие всплывающие виджеты
- 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 _construct
has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring. Open
_construct: function(o) {
var _w = this;
this.navigator = {
- 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 add
has a Cognitive Complexity of 26 (exceeds 5 allowed). Consider refactoring. Open
add: function(item, i, type) {
// console.log('add item');
// var key;
- 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 bind
has 93 lines of code (exceeds 25 allowed). Consider refactoring. Open
bind: function(data, update, pivot) {
var o = this.options;
var self = this;
var w = this;
Function addBefore
has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring. Open
addBefore: function(item, otherItem, w, group) {
var o = this.options;
var itemEl = item.dom.outerEl;
- 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
`` has 29 functions (exceeds 20 allowed). Consider refactoring. Open
Ergo.defineClass('Ergo.core.Widget', /** @lends Ergo.core.Widget.prototype */{
extends: 'Ergo.core.Object',
mixins: ['observable', 'statable'],
Function open
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
open: function(position) {
var popups = Ergo.context._popups;
// в эксклюзивном режиме закрываем другие всплывающие виджеты
Function _construct
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
_construct: function(o) {
this._super(o);
var grid = this;
Function sync
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
sync: function(newData) {
var self = this;
var valueUid = (this.options.valueUid || this._valueUid);
Function set
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
set: function(to, data) {
if(!to || (typeof to !== 'string')) {
console.warn('State key ['+$ergo.print(to)+'] must be of type string');
return false;
File states.js
has 300 lines of code (exceeds 250 allowed). Consider refactoring. Open
//= require events
Function _construct
has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring. Open
_construct: function(o) {
this._super(o);
this._scopes = {};
- 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 _construct
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
_construct: function(o) {
this._super(o);
var w = this;
File core-utils.js
has 294 lines of code (exceeds 250 allowed). Consider refactoring. Open
(function(){
`` has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Ergo.defineClass('Ergo.core.Components', /** @lends Ergo.core.Components.prototype */ {
extends: 'Ergo.core.Array',
// defaults: {
Function addAfter
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
addAfter: function(item, otherItem, w, group) {
var o = this.options;
var itemEl = item.dom.outerEl;
`` has 25 functions (exceeds 20 allowed). Consider refactoring. Open
$ergo.merge(Ergo.core.Collection.prototype, /** @lends Ergo.core.Collection.prototype */{
// Ergo.core.Collection = Ergo.defineClass('Ergo.core.Collection', 'Ergo.core.Object', /** @lends Ergo.core.Collection.prototype */{
//
// defaults: {
// // plugins: [Ergo.Observable]
Function _destroy
has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring. Open
_destroy: function(root) {
Ergo.core.Widget.superclass._destroy.call(this);
var self = this;
- 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 addBefore
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
addBefore: function(item, otherItem, w, group) {
var o = this.options;
var itemEl = item.dom.outerEl;
File widget-list.js
has 279 lines of code (exceeds 250 allowed). Consider refactoring. Open
//= require array