18F/cg-dashboard

View on GitHub
static_src/stores/activity_store.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function handleAction has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  handleAction(action) {
    let activity;
    switch (action.type) {
      case activityActionTypes.EVENTS_FETCH:
        this.isFetchingEvents = true;
Severity: Minor
Found in static_src/stores/activity_store.js - About 1 hr to fix

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

    function parseLogItem(log) {
      const parseMessage = [
        '(.*)\\s-\\s\\[(.*)]\\s"([^"]*)(HTTP/.*)"\\s(\\d+)\\s.*',
        'x_forwarded_for:"(.*)"\\sx_forwarded_proto:"(\\w+)"\\',
        "svcap_request_id:(.*)\\sresponse_time:(.*)\\sapp_id:(.*)"
    Severity: Minor
    Found in static_src/stores/activity_store.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status