Coursemology/coursemology2

View on GitHub

Showing 1,205 of 1,252 total issues

Avoid too many return statements within this function.
Open

      return { ...state, currentItemSelectorPanel: action.panel };
Severity: Major
Found in client/app/bundles/course/duplication/store.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

      return { ...state, isDuplicating: false };
Severity: Major
Found in client/app/bundles/course/duplication/store.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

      return {
        ...state,
        posts: {
          ...state.posts,
          [postId]: text,
Severity: Major
Found in client/app/bundles/course/assessment/submission/reducers/commentForms.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

      return state.map((survey) => surveyReducer(survey, action));
Severity: Major
Found in client/app/bundles/course/survey/reducers/surveys.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

      return { ...state, duplicationMode: action.duplicationMode };
Severity: Major
Found in client/app/bundles/course/duplication/store.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

      return {
        ...state,
        posts: Object.keys(state.posts).reduce((obj, key) => {
          if (key !== action.payload.postId.toString()) {
            return { ...obj, [key]: state.posts[key] };
Severity: Major
Found in client/app/bundles/course/assessment/submission/reducers/commentForms.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

      return {
        ...state,
        items,
        groups: groupItemsUnderMilestones(items, state.milestones),
      };
Severity: Major
Found in client/app/bundles/course/lesson-plan/reducers/lessonPlan.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

Avoid too many return statements within this function.
Open

  return errorOrWarning;
Severity: Major
Found in client/app/lib/components/form/fields/utils/mapError.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

      return {
        ...state,
        items,
        groups: groupItemsUnderMilestones(items, state.milestones),
        visibilityByType: initializeVisibility(items, visibilityByType),
Severity: Major
Found in client/app/bundles/course/lesson-plan/reducers/lessonPlan.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

      return {
        ...state,
        exp: action.exp,
      };

Avoid too many return statements within this function.
Open

      return {
        ...state,
        milestones,
        groups: groupItemsUnderMilestones(state.items, milestones),
      };
Severity: Major
Found in client/app/bundles/course/lesson-plan/reducers/lessonPlan.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

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

Avoid too many return statements within this function.
Open

      return {
        ...state,
        milestones,
        groups: groupItemsUnderMilestones(state.items, milestones),
      };
Severity: Major
Found in client/app/bundles/course/lesson-plan/reducers/lessonPlan.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

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

Avoid too many return statements within this function.
Open

      return {
        ...state,
        items,
        groups: groupItemsUnderMilestones(items, state.milestones),
        visibilityByType: initializeVisibility(items, visibilityByType),
Severity: Major
Found in client/app/bundles/course/lesson-plan/reducers/lessonPlan.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

      return {
        ...state,
        items,
        groups: groupItemsUnderMilestones(items, state.milestones),
        visibilityByType: initializeVisibility(items, visibilityByType),
Severity: Major
Found in client/app/bundles/course/lesson-plan/reducers/lessonPlan.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

      return { ...state, isDuplicating: true };
Severity: Major
Found in client/app/bundles/course/duplication/store.js - About 30 mins to fix

Avoid too many return statements within this function.
Open

      return {
        ...state,
        [questionId]: {
          ...state[questionId],
          isResetting: true,

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
Severity
Category
Status
Source
Language