atlp-rwanda/atlp-devpulse-fn

View on GitHub
src/routes/routes.tsx

Summary

Maintainability
D
1 day
Test Coverage

Function Navigation has 380 lines of code (exceeds 200 allowed). Consider refactoring.
Open

function Navigation() {
  const roleName = localStorage.getItem("roleName");
  return (
    <Routes>
      {/* Public Routes */}
Severity: Major
Found in src/routes/routes.tsx - About 1 day to fix

    File routes.tsx has 440 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    import React from "react";
    import { HashRouter as Router, Routes, Route, Link, Navigate } from "react-router-dom";
    import TestTailwind from "./../components/TestTailwind";
    import TrainneeDetails from "./../pages/TrainneeDetails";
    import TrainneeDetailsB from "./../pages/TrainneDetailsB";
    Severity: Minor
    Found in src/routes/routes.tsx - About 6 hrs to fix

      There are no issues that match your filters.

      Category
      Status