Showing 5,781 of 10,536 total issues
Function PathNode
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var PathNode = /** @class */ (function () {
function PathNode(stateOrNode) {
if (stateOrNode instanceof PathNode) {
var node = stateOrNode;
this.state = node.state;
Function makeSwipeDirective
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function makeSwipeDirective(directiveName, direction, eventName) {
ngTouch.directive(directiveName, ['$parse', '$swipe', function($parse, $swipe) {
// The maximum vertical delta for a swipe should be less than 75px.
var MAX_VERTICAL_DISTANCE = 75;
// Vertical distance should not be more than a fraction of the horizontal distance.
Function UrlMatcherFactory
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var UrlMatcherFactory = /** @class */ (function () {
// TODO: move implementations to UrlConfig (urlService.config)
function UrlMatcherFactory(/** @internal */ router) {
var _this = this;
this.router = router;
Function packageAnimations
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function packageAnimations(element, event, options, animations, fnName) {
var operations = groupEventedAnimations(element, event, options, animations, fnName);
if (operations.length === 0) {
var a, b;
if (fnName === 'beforeSetClass') {
Function buildCellHTML
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function buildCellHTML(date) {
var contentClass = tm + "-widget-content";
var month = t.start.getMonth();
var today = clearTime(new Date());
var html = '';
Function createMarkers
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
createMarkers: function(markers) {
var i,
marker,
point,
markerConfig,
Function addVirtualPowerPlant
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.addVirtualPowerPlant = function() {
var modalInstance = $uibModal.open({
templateUrl: 'views/settings/virtualpowerplant/virtualpowerplant.model.html',
controller: 'ModalAddVirtualPowerPlantCtrl',
windowClass: "animated fadeIn",
Function editVirtualPowerPlant
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.editVirtualPowerPlant = function(virtualpowerplant) {
var modalInstance = $uibModal.open({
windowClass: "animated fadeIn",
templateUrl: 'views/settings/virtualpowerplant/virtualpowerplant.model.html',
controller: 'ModalEditVirtualPowerPlantCtrl',
Function addWindFarm
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.addWindFarm = function() {
var modalInstance = $uibModal.open({
templateUrl: 'views/settings/windfarm/windfarm.model.html',
controller: 'ModalAddWindFarmCtrl',
windowClass: "animated fadeIn",
Function editMicrogridGenerator
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.editMicrogridGenerator = function(microgridgenerator) {
var modalInstance = $uibModal.open({
templateUrl: 'views/settings/microgrid/microgridgenerator.model.html',
controller: 'ModalEditMicrogridGeneratorCtrl',
windowClass: "animated fadeIn",
Function editMicrogridLoad
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.editMicrogridLoad = function(microgridload) {
var modalInstance = $uibModal.open({
templateUrl: 'views/settings/microgrid/microgridload.model.html',
controller: 'ModalEditMicrogridLoadCtrl',
windowClass: "animated fadeIn",
Function addPhotovoltaicPowerStation
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.addPhotovoltaicPowerStation = function() {
var modalInstance = $uibModal.open({
templateUrl: 'views/settings/photovoltaicpowerstation/photovoltaicpowerstation.model.html',
controller: 'ModalAddPhotovoltaicPowerStationCtrl',
windowClass: "animated fadeIn",
Function editMicrogridEVCharger
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.editMicrogridEVCharger = function(microgridevcharger) {
var modalInstance = $uibModal.open({
templateUrl: 'views/settings/microgrid/microgridevcharger.model.html',
controller: 'ModalEditMicrogridEVChargerCtrl',
windowClass: "animated fadeIn",
Function Plyr
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Plyr = () => {
return (
<Fragment>
<PageHeader
title="Falcon Player"
Function deps
has 40 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/footable/footable.all.min.js', 'css/plugins/footable/footable.core.css']
Function editMicrogridPhotovoltaic
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.editMicrogridPhotovoltaic = function(microgridphotovoltaic) {
var modalInstance = $uibModal.open({
templateUrl: 'views/settings/microgrid/microgridphotovoltaic.model.html',
controller: 'ModalEditMicrogridPhotovoltaicCtrl',
windowClass: "animated fadeIn",
Function addMicrogridGrid
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.addMicrogridGrid = function() {
var modalInstance = $uibModal.open({
templateUrl: 'views/settings/microgrid/microgridgrid.model.html',
controller: 'ModalAddMicrogridGridCtrl',
Function refreshSVGData
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const refreshSVGData = () => {
let isResponseOK = false;
fetch(APIBaseURL + '/reports/pointrealtime', {
method: 'GET',
headers: {
Function getmeterslist
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const getmeterslist = async () => {
let isResponseOK = false;
await fetch(APIBaseURL + '/offlinemeters', {
method: 'GET',
headers: {
Function Banner
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Banner = () => {
const { isDark } = useContext(AppContext);
return (
<Section className="py-0 overflow-hidden" image={bg1} position="center bottom" overlay>
<Row className="justify-content-center align-items-center pt-8 pt-lg-10 pb-lg-9 pb-xl-0">