SupremeTechnopriest/react-idle-timer

View on GitHub
docs/pages/demo.tsx

Summary

Maintainability
D
1 day
Test Coverage

File demo.tsx has 497 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import { useRouter } from 'next/router'
import { useEffect, useState, useRef, useCallback } from 'react'
import { useIdleTimer, MessageType, workerTimers } from 'react-idle-timer'
import { motion, useMotionValue } from 'framer-motion'
import {
Severity: Minor
Found in docs/pages/demo.tsx - About 7 hrs to fix

    Avoid too many return statements within this function.
    Open

            return result
    Severity: Major
    Found in docs/pages/demo.tsx - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

              return result
      Severity: Major
      Found in docs/pages/demo.tsx - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                return result
        Severity: Major
        Found in docs/pages/demo.tsx - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                  return result
          Severity: Major
          Found in docs/pages/demo.tsx - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                      return result
            Severity: Major
            Found in docs/pages/demo.tsx - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                      return result
              Severity: Major
              Found in docs/pages/demo.tsx - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                        return result
                Severity: Major
                Found in docs/pages/demo.tsx - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                            return err.message
                  Severity: Major
                  Found in docs/pages/demo.tsx - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                            return result
                    Severity: Major
                    Found in docs/pages/demo.tsx - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                              return result
                      Severity: Major
                      Found in docs/pages/demo.tsx - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                return result
                        Severity: Major
                        Found in docs/pages/demo.tsx - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                  return result
                          Severity: Major
                          Found in docs/pages/demo.tsx - About 30 mins to fix

                            There are no issues that match your filters.

                            Category
                            Status