Coursemology/coursemology2

View on GitHub
client/app/bundles/course/assessment/submission/pages/SubmissionEditIndex/validations/AllValidation.tsx

Summary

Maintainability
A
1 hr
Test Coverage

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

export const validateBasedOnQuestionType = (
  question: SubmissionQuestionData<keyof typeof QuestionType>,
  attachments: Attachment[],
): ErrorStruct => {
  const errors: ErrorType[] = [];

There are no issues that match your filters.

Category
Status