LearnersGuild/echo

View on GitHub
src/common/containers/Phases/index.jsx

Summary

Maintainability
B
4 hrs
Test Coverage

Function mapStateToProps has 62 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function mapStateToProps(state) {
  const {app, phaseSummaries} = state
  const {phaseSummaries: phaseSummariesByPhaseId} = phaseSummaries

  const phaseSummaryList = Object.values(phaseSummariesByPhaseId)
Severity: Major
Found in src/common/containers/Phases/index.jsx - About 2 hrs to fix

    Function tableSources has 50 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      const tableSources = phaseSummaryList.map((phaseSummary, i) => {
        const projectsByMemberId = phaseSummary.currentProjects.reduce((result, project) => {
          project.memberIds.forEach(memberId => {
            result[memberId] = project
          })
    Severity: Minor
    Found in src/common/containers/Phases/index.jsx - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status