Coursemology/coursemology2

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

Summary

Maintainability
B
4 hrs
Test Coverage

Function importProgrammingFiles has 69 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function importProgrammingFiles(answerId, files, language, resetField) {
  const filesPayload = files.map((file) => ({
    id: file.id,
    filename: file.filename,
    content: file.content,

Function deleteProgrammingFile has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function deleteProgrammingFile(answer, fileId, onDeleteSuccess) {
  const answerId = answer.id;
  const payload = {
    answer: { id: answerId, file_id: fileId },
  };

There are no issues that match your filters.

Category
Status