dashpresshq/dashpress

View on GitHub
src/frontend/views/errors/UnAuthorized.tsx

Summary

Maintainability
D
1 day
Test Coverage

Function UnAuthorized has 283 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const UnAuthorized: CustomNextPage = () => {
  return (
    <BaseErrorCmp
      code={403}
      message="Unauthorized"
Severity: Major
Found in src/frontend/views/errors/UnAuthorized.tsx - About 1 day to fix

    File UnAuthorized.tsx has 287 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    import type { CustomNextPage } from "@/frontend/_layouts/types";
    
    import { BaseErrorCmp } from "./_Base";
    
    // eslint-disable-next-line react/function-component-definition
    Severity: Minor
    Found in src/frontend/views/errors/UnAuthorized.tsx - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status