Showing 5,781 of 10,536 total issues
Function unlockUser
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.unlockUser = function (user){
SweetAlert.swal({
title: $translate.instant("SWEET.UNLOCK_TITLE"),
type: "warning",
showCancelButton: true,
Function c
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var c = q(function() {
G &&
P < Q &&
((cb = 0),
(ha = 2),
Function changeCheckValue
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.changeCheckValue = function(d) {
if (
1 == b.options.autoCheck ||
1 == b.options.checkBoxSettings.autoCheck
) {
Function refresh
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
a.refresh = function(b, c, d) {
if (b)
switch (b.type) {
case "item":
v &&
Function deps
has 32 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 deps
has 32 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 handleSubmit
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const handleSubmit = e => {
e.preventDefault();
let isResponseOK = false;
fetch(APIBaseURL + '/users/forgotpassword', {
method: 'PUT',
Function onSpaceCascaderChange
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
let onSpaceCascaderChange = (value, selectedOptions) => {
setSelectedSpaceName(selectedOptions.map(o => o.label).join('/'));
let selectedSpaceID = value[value.length - 1];
setSpinnerHidden(false);
//begin of getting sensors of the selected space
Function LockScreen
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const LockScreen = () => {
return (
<AuthCardLayout
leftSideContent={
<p className="mb-0 mt-4 mt-md-5 fs--1 font-weight-semi-bold text-300">
Function onSpaceCascaderChange
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
let onSpaceCascaderChange = (value, selectedOptions) => {
setSelectedSpaceName(selectedOptions.map(o => o.label).join('/'));
let selectedSpaceID = value[value.length - 1];
setSpinnerHidden(false);
//begin of getting meters of the selected space
Function ModalActivityContent
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ModalActivityContent = () => {
return (
<>
<Media className="mb-3">
<Link to="pages/profile">
Function withAuthSplit
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const withAuthSplit = OriginalComponent => {
const UpdatedComponent = props => {
// State
const [bgProps, setBgProps] = useState(null);
Function worker
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def worker(tenant):
####################################################################################################################
# Step 1: get all input meters associated with the tenant
####################################################################################################################
print("Step 1: get all input meters associated with the tenant " + str(tenant['name']))
Function worker
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def worker(equipment):
####################################################################################################################
# Step 1: get all input meters associated with the equipment
####################################################################################################################
print("Step 1: get all input meters associated with the equipment " + str(equipment['name']))
Function worker
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def worker(tenant):
####################################################################################################################
# Step 1: get all input meters associated with the tenant
####################################################################################################################
print("Step 1: get all input meters associated with the tenant " + str(tenant['name']))
Function worker
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def worker(equipment):
####################################################################################################################
# Step 1: get all output meters associated with the equipment
####################################################################################################################
print("Step 1: get all output meters associated with the equipment " + str(equipment['name']))
Function worker
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def worker(store):
####################################################################################################################
# Step 1: get all input meters associated with the store
####################################################################################################################
print("Step 1: get all input meters associated with the store " + str(store['name']))
Function worker
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def worker(store):
####################################################################################################################
# Step 1: get all input meters associated with the store
####################################################################################################################
print("Step 1: get all input meters associated with the store " + str(store['name']))
Function worker
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def worker(equipment):
####################################################################################################################
# Step 1: get all input meters associated with the equipment
####################################################################################################################
print("Step 1: get all input meters associated with the equipment " + str(equipment['name']))
Function on_put
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def on_put(req, resp, id_):
"""Handles PUT requests"""
access_control(req)
try:
raw_json = req.stream.read().decode('utf-8')