18F/cg-dashboard

View on GitHub
static_src/actions/service_actions.js

Summary

Maintainability
C
7 hrs
Test Coverage

serviceActions has 28 functions (exceeds 20 allowed). Consider refactoring.
Open

const serviceActions = {
  fetchAllServices(orgGuid) {
    AppDispatcher.handleViewAction({
      type: serviceActionTypes.SERVICES_FETCH,
      orgGuid
Severity: Minor
Found in static_src/actions/service_actions.js - About 3 hrs to fix

    File service_actions.js has 289 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*
     * Actions for service entities. Any actions such as fetching, creating,
     * updating, etc should go here.
     */
    
    
    Severity: Minor
    Found in static_src/actions/service_actions.js - About 2 hrs to fix

      Function fetchAllInstances has 28 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        fetchAllInstances(spaceGuid) {
          AppDispatcher.handleViewAction({
            type: serviceActionTypes.SERVICE_INSTANCES_FETCH,
            spaceGuid
          });
      Severity: Minor
      Found in static_src/actions/service_actions.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status