Coursemology/coursemology2

View on GitHub
client/app/bundles/course/admin/pages/LessonPlanSettings/index.jsx

Summary

Maintainability
A
3 hrs
Test Coverage

Function renderLessonPlanItemAssessmentSettingsTable has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  renderLessonPlanItemAssessmentSettingsTable() {
    const { lessonPlanItemSettings } = this.props;
    const assessmentItemSettings = lessonPlanItemSettings.filter(
      (setting) => setting.component === 'course_assessments_component',
    );
Severity: Minor
Found in client/app/bundles/course/admin/pages/LessonPlanSettings/index.jsx - About 1 hr to fix

Function renderLessonPlanItemSettingsForComponentsTable has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  renderLessonPlanItemSettingsForComponentsTable() {
    const { lessonPlanItemSettings } = this.props;
    const componentItemSettings = lessonPlanItemSettings.filter((setting) =>
      ['course_videos_component', 'course_survey_component'].includes(
        setting.component,
Severity: Minor
Found in client/app/bundles/course/admin/pages/LessonPlanSettings/index.jsx - About 1 hr to fix

There are no issues that match your filters.

Category
Status