Showing 5,781 of 10,536 total issues
Function editOfflineMeter
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.editOfflineMeter = function(offlinemeter) {
var modalInstance = $uibModal.open({
windowClass: "animated fadeIn",
templateUrl: 'views/settings/meter/offlinemeter.model.html',
controller: 'ModalEditOfflineMeterCtrl',
Function editEnergyFlowDiagramLink
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.editEnergyFlowDiagramLink = function(energyflowdiagramlink) {
var modalInstance = $uibModal.open({
templateUrl: 'views/settings/energyflowdiagram/energyflowdiagramlink.model.html',
controller: 'ModalEditEnergyFlowDiagramLinkCtrl',
windowClass: "animated fadeIn",
Function addEnergyFlowDiagramLink
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.addEnergyFlowDiagramLink = function() {
var modalInstance = $uibModal.open({
templateUrl: 'views/settings/energyflowdiagram/energyflowdiagramlink.model.html',
controller: 'ModalAddEnergyFlowDiagramLinkCtrl',
Function getProductionListData
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const getProductionListData = async () => {
let isResponseOK = false;
await fetch(
APIBaseURL +
'/reports/enterproduction?' +
Function on_post
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def on_post(req, resp, id_):
"""Handles POST requests"""
admin_control(req)
if not id_.isdigit() or int(id_) <= 0:
raise falcon.HTTPError(status=falcon.HTTP_400, title='API.BAD_REQUEST',
Function on_post
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def on_post(req, resp):
"""Handles POST requests"""
admin_control(req)
try:
raw_json = req.stream.read().decode('utf-8')
Function on_post
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def on_post(req, resp):
"""Handles POST requests"""
admin_control(req)
try:
raw_json = req.stream.read().decode('utf-8')
Function UrlRouterProvider
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var UrlRouterProvider = /** @class */ (function () {
/** @hidden */
function UrlRouterProvider(/** @hidden */ router) {
this.router = router;
}
Function $$AnimateJsDriverProvider
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var $$AnimateJsDriverProvider = ['$$animationProvider', /** @this */ function($$animationProvider) {
$$animationProvider.drivers.push('$$animateJsDriver');
this.$get = ['$$animateJs', '$$AnimateRunner', function($$animateJs, $$AnimateRunner) {
return function initDriverFn(animationDetails) {
if (animationDetails.from && animationDetails.to) {
Function setupGrid
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function setupGrid() {
var i, axes = allAxes(), showGrid = options.grid.show;
// Initialize the plot's offset from the edge of the canvas
Function setValues
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setValues: function(values) {
var max = -Number.MAX_VALUE,
min = Number.MAX_VALUE,
val,
cc,
Function getColumnData
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
}, r.getColumnData = function(t) {
var a = e(t),
i = a.data("hide"),
o = a.index();
i = i || "", i = jQuery.map(i.split(","), function(e) {
Function editCombinedEquipmentParameter
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.editCombinedEquipmentParameter = function (combinedequipmentparameter) {
var modalInstance = $uibModal.open({
templateUrl: 'views/settings/combinedequipment/combinedequipmentparameter.model.html',
controller: 'ModalEditCombinedEquipmentParameterCtrl',
windowClass: "animated fadeIn",
Function addCombinedEquipmentParameter
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.addCombinedEquipmentParameter = function () {
var modalInstance = $uibModal.open({
templateUrl: 'views/settings/combinedequipment/combinedequipmentparameter.model.html',
controller: 'ModalAddCombinedEquipmentParameterCtrl',
windowClass: "animated fadeIn",
Function addEquipmentParameter
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.addEquipmentParameter = function() {
var modalInstance = $uibModal.open({
templateUrl: 'views/settings/equipment/equipmentparameter.model.html',
controller: 'ModalAddEquipmentParameterCtrl',
Function addOfflineMeter
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.addOfflineMeter = function() {
var modalInstance = $uibModal.open({
templateUrl: 'views/settings/meter/offlinemeter.model.html',
controller: 'ModalAddOfflineMeterCtrl',
windowClass: "animated fadeIn",
Function slide
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Carousel.prototype.slide = function (type, next) {
var $active = this.$element.find('.item.active')
var $next = next || this.getItemForDirection(type, $active)
var isCycling = this.interval
var direction = type == 'next' ? 'left' : 'right'
Function BillingAside
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const BillingAside = () => {
const [plan, setPlan] = useState('monthly');
return (
<Card className="h-100">
Function NavbarTop
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const NavbarTop = () => {
const {
showBurgerMenu,
setShowBurgerMenu,
isTopNav,
Function getmeterslistdata
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const getmeterslistdata = async () => {
let isResponseOK = false;
await fetch(
APIBaseURL +
'/reports/offlinemeterdaily?' +