Showing 5,781 of 10,536 total issues
Function onSpaceCascaderChange
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
let onSpaceCascaderChange = (value, selectedOptions) => {
setSelectedSpaceName(selectedOptions.map(o => o.label).join('/'));
setSelectedSpaceID(value[value.length - 1]);
let isResponseOK = false;
Function on_get
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def on_get(req, resp):
if 'API-KEY' not in req.headers or \
not isinstance(req.headers['API-KEY'], str) or \
len(str.strip(req.headers['API-KEY'])) == 0:
access_control(req)
Function on_post
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def on_post(req, resp, id_):
"""Handles POST requests"""
admin_control(req)
try:
raw_json = req.stream.read().decode('utf-8')
Function on_post
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def on_post(req, resp):
"""Handles POST requests"""
admin_control(req)
try:
raw_json = req.stream.read().decode('utf-8')
Function on_post
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def on_post(req, resp):
"""Handles POST requests"""
admin_control(req)
try:
raw_json = req.stream.read().decode('utf-8')
Function on_post
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def on_post(req, resp):
"""Handles POST requests"""
admin_control(req)
try:
raw_json = req.stream.read().decode('utf-8')
Function ParamTypes
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var ParamTypes = /** @class */ (function () {
function ParamTypes() {
this.enqueue = true;
this.typeQueue = [];
this.defaultTypes = pick(ParamTypes.prototype, [
Function resolvablesBuilder
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function resolvablesBuilder(state) {
/** convert resolve: {} and resolvePolicy: {} objects to an array of tuples */
var objects2Tuples = function (resolveObj, resolvePolicies) {
return Object.keys(resolveObj || {}).map(function (token) { return ({
token: token,
Function transitionTo
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
StateService.prototype.transitionTo = function (to, toParams, options) {
var _this = this;
if (toParams === void 0) { toParams = {}; }
if (options === void 0) { options = {}; }
var router = this.router;
Function $$AnimateCacheProvider
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var $$AnimateCacheProvider = function() {
var KEY = '$$ngAnimateParentKey';
var parentCounter = 0;
var cache = Object.create(null);
Function resize
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
resize: function resize(file, width, height, resizeMethod) {
var info = {
srcX: 0,
srcY: 0,
srcWidth: file.width,
Function isValidFile
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Dropzone.isValidFile = function (file, acceptedFiles) {
if (!acceptedFiles) {
return true;
} // If there are no accepted mime types, it's OK
Function set_up_html
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Chosen.prototype.set_up_html = function() {
var container_classes, container_props;
container_classes = ["chosen-container"];
container_classes.push("chosen-container-" + (this.is_multiple ? "multi" : "single"));
if (this.inherit_select_classes && this.form_field.className) {
Function expand
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.expand = function(a) {
var d = b.getItemFromChildElem(document.activeElement);
b.expandList.length = [];
b.expandIndentList.length = [];
b.expandParentList.length = [];
Function editCombinedEquipment
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.editCombinedEquipment = function (combinedequipment) {
var modalInstance = $uibModal.open({
windowClass: "animated fadeIn",
templateUrl: 'views/settings/combinedequipment/combinedequipment.model.html',
controller: 'ModalEditCombinedEquipmentCtrl',
Function editEquipment
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.editEquipment = function(equipment) {
var modalInstance = $uibModal.open({
windowClass: "animated fadeIn",
templateUrl: 'views/settings/equipment/equipment.model.html',
controller: 'ModalEditEquipmentCtrl',
Function addEnergyStorageContainer
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.addEnergyStorageContainer = function() {
var modalInstance = $uibModal.open({
templateUrl: 'views/settings/energystoragecontainer/energystoragecontainer.model.html',
controller: 'ModalAddEnergyStorageContainerCtrl',
windowClass: "animated fadeIn",
Function editEnergyStoragePowerStation
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.editEnergyStoragePowerStation = function(energystoragepowerstation) {
var modalInstance = $uibModal.open({
windowClass: "animated fadeIn",
templateUrl: 'views/settings/energystoragepowerstation/energystoragepowerstation.model.html',
controller: 'ModalEditEnergyStoragePowerStationCtrl',
Function addShopfloor
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.addShopfloor = function () {
var modalInstance = $uibModal.open({
templateUrl: 'views/settings/shopfloor/shopfloor.model.html',
controller: 'ModalAddShopfloorCtrl',
windowClass: "animated fadeIn",
Function editMicrogrid
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.editMicrogrid = function(microgrid) {
var modalInstance = $uibModal.open({
windowClass: "animated fadeIn",
templateUrl: 'views/settings/microgrid/microgrid.model.html',
controller: 'ModalEditMicrogridCtrl',