Showing 5,781 of 10,536 total issues
Consider simplifying this complex logical expression. Open
Open
if (energy_meter_hourly is None or len(energy_meter_hourly) == 0) and \
(energy_virtual_meter_hourly is None or len(energy_virtual_meter_hourly) == 0) and \
(energy_offline_meter_hourly is None or len(energy_offline_meter_hourly) == 0):
# There isn't any energy data
print("There isn't any energy data")
Consider simplifying this complex logical expression. Open
Open
if (energy_meter_hourly is None or len(energy_meter_hourly) == 0) and \
(energy_virtual_meter_hourly is None or len(energy_virtual_meter_hourly) == 0) and \
(energy_offline_meter_hourly is None or len(energy_offline_meter_hourly) == 0):
# There isn't any energy data
print("There isn't any energy data")
Consider simplifying this complex logical expression. Open
Open
if (meter_list is None or len(meter_list) == 0) and \
(virtual_meter_list is None or len(virtual_meter_list) == 0) and \
(offline_meter_list is None or len(offline_meter_list) == 0):
print("This is an empty equipment ")
return None
Consider simplifying this complex logical expression. Open
Open
if (energy_combined_equipment_hourly is None or len(energy_combined_equipment_hourly) == 0) and \
(energy_equipment_hourly is None or len(energy_equipment_hourly) == 0) and \
(energy_child_space_hourly is None or len(energy_child_space_hourly) == 0):
# There isn't any energy data
print("There isn't any energy data")
Consider simplifying this complex logical expression. Open
Open
if (energy_meter_hourly is None or len(energy_meter_hourly) == 0) and \
(energy_virtual_meter_hourly is None or len(energy_virtual_meter_hourly) == 0) and \
(energy_offline_meter_hourly is None or len(energy_offline_meter_hourly) == 0):
# There isn't any energy data
print("There isn't any energy data")
Consider simplifying this complex logical expression. Open
Open
if (meter_list is None or len(meter_list) == 0) and \
(virtual_meter_list is None or len(virtual_meter_list) == 0) and \
(offline_meter_list is None or len(offline_meter_list) == 0):
print("This is an empty store ")
return None
Consider simplifying this complex logical expression. Open
Open
if (energy_meter_hourly is None or len(energy_meter_hourly) == 0) and \
(energy_virtual_meter_hourly is None or len(energy_virtual_meter_hourly) == 0) and \
(energy_offline_meter_hourly is None or len(energy_offline_meter_hourly) == 0):
# There isn't any energy data
print("There isn't any energy data")
Consider simplifying this complex logical expression. Open
Open
if ((combined_equipment_list is None or len(combined_equipment_list) == 0) and
(equipment_list is None or len(equipment_list) == 0) and
(child_space_list is None or len(child_space_list) == 0)):
print("This is an empty space ")
return None
Consider simplifying this complex logical expression. Open
Open
if "non_working_days_subtotals" not in report['reporting_period'].keys() or \
report['reporting_period']['non_working_days_subtotals'] is None or \
len(report['reporting_period']['non_working_days_subtotals']) == 0 or \
"working_days_subtotals" not in report['reporting_period'].keys() or \
report['reporting_period']['working_days_subtotals'] is None or \
Consider simplifying this complex logical expression. Open
Open
if "non_working_days_subtotals" not in report['reporting_period'].keys() or \
report['reporting_period']['non_working_days_subtotals'] is None or \
len(report['reporting_period']['non_working_days_subtotals']) == 0 or \
"working_days_subtotals" not in report['reporting_period'].keys() or \
report['reporting_period']['working_days_subtotals'] is None or \
Consider simplifying this complex logical expression. Open
Open
if "non_working_days_subtotals" not in report['reporting_period'].keys() or \
report['reporting_period']['non_working_days_subtotals'] is None or \
len(report['reporting_period']['non_working_days_subtotals']) == 0 or \
"working_days_subtotals" not in report['reporting_period'].keys() or \
report['reporting_period']['working_days_subtotals'] is None or \
Consider simplifying this complex logical expression. Open
Open
if "non_working_days_subtotals" not in report['reporting_period'].keys() or \
report['reporting_period']['non_working_days_subtotals'] is None or \
len(report['reporting_period']['non_working_days_subtotals']) == 0 or \
"working_days_subtotals" not in report['reporting_period'].keys() or \
report['reporting_period']['working_days_subtotals'] is None or \
Function Resolvable
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function Resolvable(arg1, resolveFn, deps, policy, data) {
Function draw
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
draw = function(context, qr, modules, tile, color) {
Function getType
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function getType(cfg, urlType, location, id, paramTypes) {
Function createProxyFunctions
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function createProxyFunctions(source, target, bind, fnNames, latebind) {
Function link
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
link: function(scope, $element, attrs, ctrl, $transclude) {
Function clickHook
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function clickHook(el, $state, $timeout, type, getDef) {
Function $ViewDirectiveFill
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function $ViewDirectiveFill($compile, $controller, $transitions, $view, $q) {
Function Param
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function Param(id, type, location, urlConfig, state) {