Coursemology/coursemology2

View on GitHub
client/app/bundles/course/assessment/submission/actions/index.js

Summary

Maintainability
B
4 hrs
Test Coverage

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

export function fetchSubmission(id, onGetMonitoringSessionId) {
  return (dispatch) => {
    dispatch({ type: actionTypes.FETCH_SUBMISSION_REQUEST });

    return CourseAPI.assessment.submissions
Severity: Minor
Found in client/app/bundles/course/assessment/submission/actions/index.js - About 2 hrs to fix

Function toggleViewHistoryMode has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function toggleViewHistoryMode(
  viewHistory,
  submissionQuestionId,
  questionId,
  answersLoaded,
Severity: Minor
Found in client/app/bundles/course/assessment/submission/actions/index.js - About 1 hr to fix

Function publish has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function publish(submissionId, grades, exp) {
  const payload = {
    submission: {
      answers: grades,
      draft_points_awarded: exp,
Severity: Minor
Found in client/app/bundles/course/assessment/submission/actions/index.js - About 1 hr to fix

There are no issues that match your filters.

Category
Status