Showing 5,781 of 10,536 total issues
Function refreshSpaceTree
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.refreshSpaceTree = function () {
let headers = { "User-UUID": $scope.cur_user.uuid, "Token": $scope.cur_user.token };
SpaceService.getAllSpaces(headers, function (response) {
if (angular.isDefined(response.status) && response.status === 200) {
$scope.spaces = response.data;
Function getAllSpaces
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.getAllSpaces = function() {
let headers = { "User-UUID": $scope.cur_user.uuid, "Token": $scope.cur_user.token };
SpaceService.getAllSpaces(headers, function (response) {
if (angular.isDefined(response.status) && response.status === 200) {
$scope.spaces = response.data;
Function getAllSpaces
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.getAllSpaces = function() {
let headers = { "User-UUID": $scope.cur_user.uuid, "Token": $scope.cur_user.token };
SpaceService.getAllSpaces(headers, function (response) {
if (angular.isDefined(response.status) && response.status === 200) {
$scope.spaces = response.data;
Function getAllSpaces
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.getAllSpaces = function() {
let headers = { "User-UUID": $scope.cur_user.uuid, "Token": $scope.cur_user.token };
SpaceService.getAllSpaces(headers, function (response) {
if (angular.isDefined(response.status) && response.status === 200) {
$scope.spaces = response.data;
Function refreshMeterTree
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.refreshMeterTree = function() {
let headers = { "User-UUID": $scope.cur_user.uuid, "Token": $scope.cur_user.token };
MeterService.getAllMeters(headers, function (response) {
if (angular.isDefined(response.status) && response.status === 200) {
$scope.meters = response.data;
Function getAllSpaces
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.getAllSpaces = function() {
let headers = { "User-UUID": $scope.cur_user.uuid, "Token": $scope.cur_user.token };
SpaceService.getAllSpaces(headers, function (response) {
if (angular.isDefined(response.status) && response.status === 200) {
$scope.spaces = response.data;
Function getAllSpaces
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.getAllSpaces = function() {
let headers = { "User-UUID": $scope.cur_user.uuid, "Token": $scope.cur_user.token };
SpaceService.getAllSpaces(headers, function (response) {
if (angular.isDefined(response.status) && response.status === 200) {
$scope.spaces = response.data;
Function getAllSpaces
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.getAllSpaces = function() {
let headers = { "User-UUID": $scope.cur_user.uuid, "Token": $scope.cur_user.token };
SpaceService.getAllSpaces(headers, function (response) {
if (angular.isDefined(response.status) && response.status === 200) {
$scope.spaces = response.data;
Function addEnergyFlowDiagram
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.addEnergyFlowDiagram = function() {
var modalInstance = $uibModal.open({
templateUrl: 'views/settings/energyflowdiagram/energyflowdiagram.model.html',
controller: 'ModalAddEnergyFlowDiagramCtrl',
windowClass: "animated fadeIn",
Function deps
has 29 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 addCostCenter
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.addCostCenter = function() {
var modalInstance = $uibModal.open({
templateUrl: 'views/settings/costcenter/costcenter.model.html',
controller: 'ModalAddCostCenterCtrl',
windowClass: "animated fadeIn",
Function deps
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ($ocLazyLoad) {
return $ocLazyLoad.load(['ui.select', 'ui.checkbox', 'toaster']).then(
function () {
return $ocLazyLoad.load([{
files: ['js/plugins/sweetalert/sweetalert.min.js', 'css/plugins/sweetalert/sweetalert.css']
Function deps
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ($ocLazyLoad) {
return $ocLazyLoad.load(['ui.select', 'ui.checkbox', 'toaster']).then(
function () {
return $ocLazyLoad.load([{
files: ['js/plugins/sweetalert/sweetalert.min.js', 'css/plugins/sweetalert/sweetalert.css']
Function render
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const chartData = {
...this.state.chartData,
datasets: [
{
Function render
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const chartData = {
...this.state.chartData,
datasets: [
{
Function ShoppingCart
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ShoppingCart = () => {
const { shoppingCart } = useContext(ProductContext);
return (
<Card>
Function render
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const chartData = {
...this.state.chartData,
datasets: [
{
Function Tabs
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Tabs = () => {
return (
<>
<PageHeader
title="Tabs"
Function fetchPCSDetails
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const fetchPCSDetails = () => {
let url = APIBaseURL + '/reports/energystoragepowerstationdetails/' + selectedStation + '/pcs'
console.log('fetchPCSDetails with url:' + url);
let isResponseOK = false;
Function fetchBMSDetails
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const fetchBMSDetails = () => {
let url = APIBaseURL + '/reports/energystoragepowerstationdetails/' + selectedStation + '/bms'
console.log('fetchBMSDetails with url:' + url);
let isResponseOK = false;
fetch(url, {