Coursemology/coursemology2

View on GitHub
client/app/bundles/course/survey/actions/responses.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function createResponse has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function createResponse(surveyId, navigate) {
  const courseId = getCourseId();
  const goToResponse = (responseId) =>
    navigate(
      `/courses/${courseId}/surveys/${surveyId}/responses/${responseId}`,
Severity: Minor
Found in client/app/bundles/course/survey/actions/responses.js - About 1 hr to fix

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

export function updateResponse(
  responseId,
  payload,
  successMessage,
  failureMessage,
Severity: Minor
Found in client/app/bundles/course/survey/actions/responses.js - About 1 hr to fix

Function updateResponse has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

  responseId,
  payload,
  successMessage,
  failureMessage,
  navigate,
Severity: Minor
Found in client/app/bundles/course/survey/actions/responses.js - About 45 mins to fix

There are no issues that match your filters.

Category
Status