francisco-navarro/climateberry

View on GitHub

Showing 3 of 19 total issues

Function init has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function init() {
  const router = require('express').Router();
  const db = require('../db/index');
  const temperateController = require('./controller/temperature.controller');
  const switchController = require('./controller/switch.controller');
Severity: Minor
Found in client/router.js - About 1 hr to fix

    Function getServices has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      getServices() {
        debugger;
        const services = [];
        this.CurrentHeatingCoolingState = Characteristic.CurrentHeatingCoolingState;
        this.TargetHeatingCoolingState = Characteristic.TargetHeatingCoolingState;
    Severity: Minor
    Found in homebridge-plugin/index.js - About 1 hr to fix

      Function temp has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function temp() {
        if (promise) return promise;
      
        promise = new Promise((resolve) => {
          console.log('python read temp');
      Severity: Minor
      Found in client/controller/sensor.controller.js - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language