ethanneff/example

View on GitHub
src/apps/Playground/Components/Modals/index.tsx

Summary

Maintainability
B
6 hrs
Test Coverage

Function Modals has 107 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const Modals = () => {
  const { goBack } = useNavigation();
  const colors = useColors();
  const [modal, setModal] = useState<Modal>(null);
  const handleModalChange = useCallback(
Severity: Major
Found in src/apps/Playground/Components/Modals/index.tsx - About 4 hrs to fix

    Avoid too many return statements within this function.
    Open

          return (
            <Notification
              onCancel={handleClose}
              title="bob"
            />
    Severity: Major
    Found in src/apps/Playground/Components/Modals/index.tsx - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

            return null;
      Severity: Major
      Found in src/apps/Playground/Components/Modals/index.tsx - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

              return (
                <Modal
                  onBackgroundPress={handleClose}
                  showOverlay
                >
        Severity: Major
        Found in src/apps/Playground/Components/Modals/index.tsx - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                return (
                  <Modal
                    onBackgroundPress={handleClose}
                    showOverlay
                  >
          Severity: Major
          Found in src/apps/Playground/Components/Modals/index.tsx - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                  return <Loading onBackgroundPress={handleClose} />;
            Severity: Major
            Found in src/apps/Playground/Components/Modals/index.tsx - About 30 mins to fix

              There are no issues that match your filters.

              Category
              Status