Showing 5,781 of 10,536 total issues
Function getMergedMeters
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.getMergedMeters = function() {
$scope.mergedmeters = [];
$scope.meters = [];
$scope.offlinemeters = [];
$scope.virtualmeters = [];
Function activate
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Tab.prototype.activate = function (element, container, callback) {
var $active = container.find('> .active')
var transition = callback
&& $.support.transition
&& ($active.length && $active.hasClass('fade') || !!container.find('> .fade').length)
Function getMergedMeters
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.getMergedMeters = function() {
$scope.mergedmeters = [];
$scope.meters = [];
$scope.offlinemeters = [];
$scope.virtualmeters = [];
Function captcha
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function captcha() {
return {
restrict: 'AE',
replace: true,
name: 'captcha',
Function Leaflet
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Leaflet = () => {
const { isDark } = useContext(AppContext);
let map = useRef(null);
const [mapWidth, setMapWidth] = useState();
Function deps
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ($ocLazyLoad) {
return $ocLazyLoad.load(['ui.checkbox', 'ui.select', 'toaster']).then(
function () {
return $ocLazyLoad.load([{
files: ['js/plugins/sweetalert/sweetalert.min.js', 'css/plugins/sweetalert/sweetalert.css']
Function RecentPurchasesTable
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const RecentPurchasesTable = () => {
const [isSelected, setIsSelected] = useState(false);
return (
<Card className="mb-3">
Function handleSubmit
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const handleSubmit = e => {
e.preventDefault();
let isResponseOK = false;
fetch(APIBaseURL + '/users/newusers', {
method: 'POST',
Function getSpaceList
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const getSpaceList = async () => {
let isResponseOK = false;
fetch(APIBaseURL + '/spaces/tree', {
method: 'GET',
headers: {
Function RecentPurchasesTable
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const RecentPurchasesTable = () => {
const [isSelected, setIsSelected] = useState(false);
return (
<Card className="mb-3">
Function getAvatar
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const getAvatar = () => {
if (src) {
if (isIterableArray(src)) {
return (
<div className={`${mediaClasses} overflow-hidden h-100 d-flex`}>
Function RecentPurchasesTable
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const RecentPurchasesTable = () => {
const [isSelected, setIsSelected] = useState(false);
return (
<Card className="mb-3">
Function on_post
has 38 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_put
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def on_put(req, resp, id_, fid):
"""Handles PUT requests"""
admin_control(req)
try:
raw_json = req.stream.read().decode('utf-8')
Function on_post
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def on_post(req, resp, id_):
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_put
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def on_put(req, resp, id_):
"""Handles PUT requests"""
admin_control(req)
try:
raw_json = req.stream.read().decode('utf-8')
Function on_put
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def on_put(req, resp):
"""Handles PUT requests"""
if 'USER-UUID' not in req.headers or \
not isinstance(req.headers['USER-UUID'], str) or \
len(str.strip(req.headers['USER-UUID'])) == 0:
Function byteArrayOutputStream
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var byteArrayOutputStream = function() {
var _bytes = [];
var _this = {};
Function $get
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.$get = [function() {
return {
cacheKey: function(node, method, addClass, removeClass) {
var parentNode = node.parentNode;
var parentID = parentNode[KEY] || (parentNode[KEY] = ++parentCounter);
Function $get
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.$get = function() {
var $log = {
log: function() { $log.log.logs.push(concat([], arguments, 0)); },
warn: function() { $log.warn.logs.push(concat([], arguments, 0)); },
info: function() { $log.info.logs.push(concat([], arguments, 0)); },