api/lib/domain/services/certification-service.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function getCertificationResult has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  getCertificationResult(certificationCourseId) {
    let assessment = {};
    let assessmentLastResult;
    let certification = {};
    return assessmentRepository
Severity: Minor
Found in api/lib/domain/services/certification-service.js - About 1 hr to fix

    Function _getCertificationResult has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function _getCertificationResult(assessment) {
      let startOfCertificationDate;
    
      return Promise.all([assessment, answersRepository.findByAssessment(assessment.id)])
        .then(([assessment, answersByAssessments]) => {
    Severity: Minor
    Found in api/lib/domain/services/certification-service.js - About 1 hr to fix

      TODO found
      Open

          // TODO: Convertir ça en Mark ?

      TODO found
      Open

          // TODO: Convertir ça en Mark ?

      FIXME found
      Open

            // FIXME: Missing tests

      TODO found
      Open

        return challengeType === qrocmDepChallenge && answer.isOk(); // TODO check challengeType in real Challenge Domain Object

      There are no issues that match your filters.

      Category
      Status