Showing 5,781 of 10,536 total issues
File offlinemeter.controller.js
has 350 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
'use strict';
app.controller('OfflineMeterController', function(
$scope,
$rootScope,
Function on_get
has 110 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_get
has 110 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)
File energystoragepowerstationreportingenergy.py
has 349 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import base64
from core.utilities import get_translation
import os
import re
import uuid
File energystoragepowerstationreportingrevenue.py
has 349 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import base64
from core.utilities import get_translation
import os
import re
import uuid
Function TransitionHook
has 109 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var TransitionHook = /** @class */ (function () {
function TransitionHook(transition, stateContext, registeredHook, options) {
var _this = this;
this.transition = transition;
this.stateContext = stateContext;
Function renderSlotSegs
has 109 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function renderSlotSegs(segs, modifiedEventId) {
var i, segCnt=segs.length, seg,
event,
top,
Function on_get
has 109 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_get
has 109 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_get
has 109 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_get
has 109 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_get
has 109 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)
File energystoragepowerstationitemenergy.py
has 348 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import re
from datetime import datetime, timedelta, timezone
from decimal import Decimal
import falcon
import mysql.connector
File energystoragepowerstationitemcarbon.py
has 348 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import re
from datetime import datetime, timedelta, timezone
from decimal import Decimal
import falcon
import mysql.connector
File energystoragepowerstationitembilling.py
has 348 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import re
from datetime import datetime, timedelta, timezone
from decimal import Decimal
import falcon
import mysql.connector
Consider simplifying this complex logical expression. Open
Open
if (p && a.isItemEnabled(p) && 0 != a.callKeyDown(g, p)) {
a.callKeyDown(g, p);
var t = 0;
switch (g.keyCode) {
case 9:
Function parseOptions
has 108 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parseOptions(opts) {
$.extend(true, options, opts);
// $.extend merges arrays, rather than replacing them. When less
Function on_get
has 108 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_get
has 108 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_get
has 108 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)