Showing 5,781 of 10,536 total issues
Function importVirtualMeter
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.importVirtualMeter = function() {
var modalInstance = $uibModal.open({
templateUrl: 'views/common/import.html',
controller: 'ModalImportCtrl',
windowClass: "animated fadeIn",
Function importSpace
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.importSpace = function() {
var modalInstance = $uibModal.open({
templateUrl: 'views/common/import.html',
controller: 'ModalImportCtrl',
windowClass: "animated fadeIn",
Function importMeter
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.importMeter = function() {
var modalInstance = $uibModal.open({
templateUrl: 'views/common/import.html',
controller: 'ModalImportCtrl',
windowClass: "animated fadeIn",
Function deleteCategory
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.deleteCategory=function(category){
SweetAlert.swal({
title: $translate.instant("SWEET.TITLE"),
text: $translate.instant("SWEET.TEXT"),
type: "warning",
Function deleteKnowledgeFile
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.deleteKnowledgeFile = function (knowledgefile) {
SweetAlert.swal({
title: $translate.instant("SWEET.TITLE"),
text: $translate.instant("SWEET.TEXT"),
type: "warning",
Function deleteShopfloor
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.deleteShopfloor = function (shopfloor) {
SweetAlert.swal({
title: $translate.instant("SWEET.TITLE"),
text: $translate.instant("SWEET.TEXT"),
type: "warning",
Function deleteEnergyPlanFile
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.deleteEnergyPlanFile = function(energyplanfile) {
SweetAlert.swal({
title: $translate.instant("SWEET.TITLE"),
text: $translate.instant("SWEET.TEXT"),
type: "warning",
Function importTenant
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.importTenant = function() {
var modalInstance = $uibModal.open({
templateUrl: 'views/common/import.html',
controller: 'ModalImportCtrl',
windowClass: "animated fadeIn",
Function deleteOfflineMeterFile
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.deleteOfflineMeterFile = function(offlinemeterfile) {
SweetAlert.swal({
title: $translate.instant("SWEET.TITLE"),
text: $translate.instant("SWEET.TEXT"),
type: "warning",
Function deleteEnergyStoragePowerStation
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.deleteEnergyStoragePowerStation=function(energystoragepowerstation){
SweetAlert.swal({
title: $translate.instant("SWEET.TITLE"),
text: $translate.instant("SWEET.TEXT"),
type: "warning",
Function deps
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ($ocLazyLoad) {
return $ocLazyLoad.load(['ui.select', 'ui.checkbox', 'daterangepicker', 'toaster']).then(
function () {
return $ocLazyLoad.load([{
serie: true,
Function deleteNonWorkingDay
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.deleteNonWorkingDay = function(nonworkingday) {
SweetAlert.swal({
title: $translate.instant("SWEET.TITLE"),
text: $translate.instant("SWEET.TEXT"),
type: "warning",
Function deps
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ($ocLazyLoad) {
return $ocLazyLoad.load(['ui.checkbox', 'ui.select', 'daterangepicker', 'toaster']).then(
function () {
return $ocLazyLoad.load(
[{
Function deps
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ($ocLazyLoad) {
return $ocLazyLoad.load(['ui.select', 'ui.checkbox', 'daterangepicker', 'toaster']).then(
function () {
return $ocLazyLoad.load([{
serie: true,
Function deleteCostFile
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.deleteCostFile = function (costfile) {
SweetAlert.swal({
title: $translate.instant("SWEET.TITLE"),
text: $translate.instant("SWEET.TEXT"),
type: "warning",
Function deleteEnergyFlowDiagram
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.deleteEnergyFlowDiagram=function(energyflowdiagram){
SweetAlert.swal({
title: $translate.instant("SWEET.TITLE"),
text: $translate.instant("SWEET.TEXT"),
type: "warning",
Function VerticalAlign
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const VerticalAlign = () => {
return (
<Fragment>
<PageHeader
title="Vertical Align"
Function getImage
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const getImage = color => {
switch (color) {
case 'warning':
return corner1;
case 'info':
Function on_get
has 34 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_put
has 34 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')