Showing 5,781 of 10,536 total issues
Function Dropzone
has a Cognitive Complexity of 845 (exceeds 5 allowed). Consider refactoring. Open
function (_Emitter) {
_inherits(Dropzone, _Emitter);
_createClass(Dropzone, null, [{
key: "initClass",
- 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 angular.integralui.treeview.min.js
has 5810 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
filename: angular.integralui.treeview.min.js
version : 3.3.445
Copyright � 2014-2018 Lidor Systems. All rights reserved.
Function qrcode
has a Cognitive Complexity of 795 (exceeds 5 allowed). Consider refactoring. Open
var qrcode = function() {
//---------------------------------------------------------------------
// qrcode
//---------------------------------------------------------------------
- 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 angular-ui-router.js
has 5643 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* State-based routing for AngularJS 1.x
* NOTICE: This monolithic bundle also bundles the @uirouter/core code.
* This causes it to be incompatible with plugins that depend on @uirouter/core.
* We recommend switching to the ui-router-core.js and ui-router-angularjs.js bundles instead.
File energystoragecontainer.py
has 5435 lines of code (exceeds 250 allowed). Consider refactoring. Open
import uuid
import falcon
import mysql.connector
import simplejson as json
from core.useractivity import user_logger, admin_control, access_control, api_key_control
File fullcalendar.js
has 5375 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*!
* FullCalendar v2.1.1
* Docs & License: http://arshaw.com/fullcalendar/
* (c) 2013 Adam Shaw
*/
Function link
has 2968 lines of code (exceeds 25 allowed). Consider refactoring. Open
link: function(k, m, U, a, b) {
var w = this,
H = m.children().eq(0),
C = m.children().eq(1),
I = m.children().eq(2),
Function worker
has a Cognitive Complexity of 665 (exceeds 5 allowed). Consider refactoring. Open
def worker(space):
####################################################################################################################
# Step 1: get all input meters associated with the space
####################################################################################################################
print("Step 1: get all input meters associated with the space " + str(space['name']))
- 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 worker
has a Cognitive Complexity of 665 (exceeds 5 allowed). Consider refactoring. Open
def worker(space):
####################################################################################################################
# Step 1: get all input meters associated with the space
####################################################################################################################
print("Step 1: get all input meters associated with the space " + str(space['name']))
- 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 microgrid.py
has 4670 lines of code (exceeds 250 allowed). Consider refactoring. Open
import uuid
from datetime import datetime, timedelta
import falcon
import mysql.connector
import simplejson as json
File space.py
has 4401 lines of code (exceeds 250 allowed). Consider refactoring. Open
import uuid
from datetime import datetime, timedelta
import falcon
import mysql.connector
import simplejson as json
File fullcalendar.min.js
has 4312 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*!
* FullCalendar v1.6.4
* Docs & License: http://arshaw.com/fullcalendar/
* (c) 2013 Adam Shaw
*/
Function Dropzone
has 2071 lines of code (exceeds 25 allowed). Consider refactoring. Open
function (_Emitter) {
_inherits(Dropzone, _Emitter);
_createClass(Dropzone, null, [{
key: "initClass",
Function Plot
has 1987 lines of code (exceeds 25 allowed). Consider refactoring. Open
function Plot(placeholder, data_, options_, plugins) {
// data is on the form:
// [ series1, series2 ... ]
// where series is either just the data as [ [x1, y1], [x2, y2], ... ]
// or { data: [ [x1, y1], [x2, y2], ... ], label: "some label", ... }
File combinedequipment.py
has 2995 lines of code (exceeds 250 allowed). Consider refactoring. Open
import uuid
from datetime import datetime, timedelta
import falcon
import mysql.connector
import simplejson as json
Function qrcode
has 1570 lines of code (exceeds 25 allowed). Consider refactoring. Open
var qrcode = function() {
//---------------------------------------------------------------------
// qrcode
//---------------------------------------------------------------------
File equipment.py
has 2730 lines of code (exceeds 250 allowed). Consider refactoring. Open
import uuid
from datetime import datetime, timedelta
import falcon
import mysql.connector
import simplejson as json
File dropzone.js
has 2726 lines of code (exceeds 250 allowed). Consider refactoring. Open
"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
File tenant.py
has 2601 lines of code (exceeds 250 allowed). Consider refactoring. Open
import uuid
from datetime import datetime, timedelta, timezone
import falcon
import mysql.connector
import simplejson as json
File jquery-jvectormap-2.0.2.min.js
has 2497 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* jVectorMap version 2.0.2
*
* Copyright 2011-2014, Kirill Lebedev
*