GladysProject/Gladys

View on GitHub
front/src/actions/device.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function createActions has 65 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function createActions(store) {
  const actions = {
    async getDevicesByRoom(state) {
      store.setState({
        DeviceGetStatus: DeviceGetByRoomStatus.Getting
Severity: Major
Found in front/src/actions/device.js - About 2 hrs to fix

    Function updateValue has 7 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        async updateValue(state, device, deviceFeature, roomIndex, deviceIndex, deviceFeatureIndex, value) {
    Severity: Major
    Found in front/src/actions/device.js - About 50 mins to fix

      Function updateLocalValue has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          updateLocalValue(state, roomIndex, deviceIndex, deviceFeatureIndex, value) {
      Severity: Minor
      Found in front/src/actions/device.js - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status