Coursemology/coursemology2

View on GitHub
client/app/bundles/course/assessment/reducers/formDialog.js

Summary

Maintainability
A
2 hrs
Test Coverage

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

export default function (state = initialState, action) {
  switch (action.type) {
    case actionTypes.ASSESSMENT_FORM_SHOW: {
      return { ...state, visible: true };
    }
Severity: Minor
Found in client/app/bundles/course/assessment/reducers/formDialog.js - About 1 hr to fix

Avoid too many return statements within this function.
Open

      return {
        ...state,
        visible: false,
        disabled: false,
      };
Severity: Major
Found in client/app/bundles/course/assessment/reducers/formDialog.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

      return { ...state, disabled: true };
Severity: Major
Found in client/app/bundles/course/assessment/reducers/formDialog.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

      return { ...state, disabled: false };
Severity: Major
Found in client/app/bundles/course/assessment/reducers/formDialog.js - About 30 mins to fix

There are no issues that match your filters.

Category
Status