Coursemology/coursemology2

View on GitHub
client/app/bundles/course/survey/reducers/survey.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function default has 61 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function (survey = initialState, action) {
  if (String(survey.id) !== String(action.surveyId)) {
    return survey;
  }

Severity: Major
Found in client/app/bundles/course/survey/reducers/survey.js - About 2 hrs to fix

Avoid too many return statements within this function.
Open

      return {
        ...survey,
        sections,
      };
Severity: Major
Found in client/app/bundles/course/survey/reducers/survey.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

      return {
        ...survey,
        sections,
      };
Severity: Major
Found in client/app/bundles/course/survey/reducers/survey.js - About 30 mins to fix

There are no issues that match your filters.

Category
Status