EscolaLMS/Front

View on GitHub
src/hooks/courses/useFilter.ts

Summary

Maintainability
B
4 hrs
Test Coverage

Function useFilter has 113 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const useFilter = (entityType: EntityType = "courses") => {
  const coursesContext = useContext(CoursesContext);
  const consultationsContext = useContext(ConsultationsContext);
  const { fetchCategories, categoryTree } = useContext(EscolaLMSContext);

Severity: Major
Found in src/hooks/courses/useFilter.ts - About 4 hrs to fix

    There are no issues that match your filters.

    Category
    Status