Showing 5,781 of 10,536 total issues
Function on_get
has 105 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 offlinemetercarbon.py
has 341 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
from datetime import datetime, timedelta, timezone
from decimal import Decimal
import falcon
import mysql.connector
import simplejson as json
File offlinemetercost.py
has 341 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
from datetime import datetime, timedelta, timezone
from decimal import Decimal
import falcon
import mysql.connector
import simplejson as json
Function filesLoader
has 104 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$delegate.filesLoader = function filesLoader(config) {
var params = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
var cssFiles = [],
templatesFiles = [],
Function b
has 104 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var b = q(function() {
Q = 0;
F = G = !1;
a.getTemplateUrl() || a.updateLongestItem();
if (
Function itemSelection
has 104 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.itemSelection = function(a, h, e) {
if (h) {
if ("none" !== b.options.selectionMode)
if (b.isItemEnabled(h)) {
var d = b.itemSelection(),
Function EventCreateAside
has 104 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const EventCreateAside = () => {
// Get Data
const { loading: loadingOrganizers, data: organizers } = useFakeFetch(rawOrganizers);
const { loading: loadingSponsors, data: sponsors } = useFakeFetch(rawSponsors);
const { loading: loadingEventTypes, data: eventTypes } = useFakeFetch(rawEventTypes);
Function on_get
has 104 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 104 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 104 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 104 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 microgridsbilling.py
has 339 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
from datetime import datetime, timedelta, timezone
from decimal import Decimal
import falcon
import mysql.connector
import simplejson as json
File microgridscarbon.py
has 339 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
from datetime import datetime, timedelta, timezone
from decimal import Decimal
import falcon
import mysql.connector
import simplejson as json
File microgridsenergy.py
has 339 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
from datetime import datetime, timedelta, timezone
from decimal import Decimal
import falcon
import mysql.connector
import simplejson as json
Function browserTrigger
has 103 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
window.browserTrigger = function browserTrigger(element, eventType, eventData) {
if (element && !element.nodeName) element = element[0];
if (!element) return;
eventData = eventData || {};
Function on_get
has 103 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 103 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 103 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 103 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 metertrend.py
has 338 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import base64
from core.utilities import get_translation
import os
import re
import uuid