atlp-rwanda/atlp-devpulse-fn

View on GitHub
src/pages/sharedPosts.tsx

Summary

Maintainability
C
1 day
Test Coverage

Function SharedJobPosts has 339 lines of code (exceeds 200 allowed). Consider refactoring.
Open

function SharedJobPosts(props: any) {
  const [fetchProgram, setfetchProgram] = useState([]);
  const [fetchCycle, setfetchCycle] = useState([]);
  const [fetchCohort, setfetchCohort] = useState([]);
  const [actionsList, setActionsList] = useState(null);
Severity: Major
Found in src/pages/sharedPosts.tsx - About 6 hrs to fix

    File sharedPosts.tsx has 369 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    import { useEffect, useState } from "react";
    import NavBar from "../components/sidebar/navHeader";
    import { BrowserRouter as Router, Link, useNavigate } from "react-router-dom";
    import { useAppDispatch, useAppSelector } from "../hooks/hooks";
    import { fetchJobPost } from "../redux/actions/fetchJobPost";
    Severity: Minor
    Found in src/pages/sharedPosts.tsx - About 4 hrs to fix

      There are no issues that match your filters.

      Category
      Status