GladysProject/Gladys

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

Summary

Maintainability
A
2 hrs
Test Coverage

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

function createActions(store) {
  const actions = {
    async getEventsInRange(state, from, to) {
      store.setState({
        DeviceGetStatus: CalendarGetEventsStatus.Getting
Severity: Minor
Found in front/src/actions/calendar.js - About 1 hr to fix

    Function getEventsInRange has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        async getEventsInRange(state, from, to) {
          store.setState({
            DeviceGetStatus: CalendarGetEventsStatus.Getting
          });
          try {
    Severity: Minor
    Found in front/src/actions/calendar.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status