atlp-rwanda/hackers-ec-Fe

View on GitHub

Showing 262 of 262 total issues

Similar blocks of code found in 11 locations. Consider refactoring.
Open

                        <label className="flex flex-col font-semibold gap-3">
                            Language:
                            <FormInput
                                type="text"
                                placeholder="Swahili"
Severity: Major
Found in src/components/auth/ProfileUser.tsx and 10 other locations - About 1 hr to fix
src/components/Layouts/UpdatePassword.tsx on lines 83..92
src/components/Layouts/UpdatePassword.tsx on lines 93..102
src/components/Layouts/UpdatePassword.tsx on lines 103..112
src/components/auth/ProfileUser.tsx on lines 174..183
src/components/auth/ProfileUser.tsx on lines 187..196
src/components/auth/ProfileUser.tsx on lines 221..230
src/components/auth/ProfileUser.tsx on lines 231..240
src/components/auth/ProfileUser.tsx on lines 243..252
src/components/auth/ProfileUser.tsx on lines 253..262
src/components/auth/ProfileUser.tsx on lines 263..272

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 58.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 11 locations. Consider refactoring.
Open

                        <label className="flex flex-col font-semibold gap-3">
                            Phone Number:
                            <FormInput
                                type="text"
                                placeholder="0780000000"
Severity: Major
Found in src/components/auth/ProfileUser.tsx and 10 other locations - About 1 hr to fix
src/components/Layouts/UpdatePassword.tsx on lines 83..92
src/components/Layouts/UpdatePassword.tsx on lines 93..102
src/components/Layouts/UpdatePassword.tsx on lines 103..112
src/components/auth/ProfileUser.tsx on lines 187..196
src/components/auth/ProfileUser.tsx on lines 197..206
src/components/auth/ProfileUser.tsx on lines 221..230
src/components/auth/ProfileUser.tsx on lines 231..240
src/components/auth/ProfileUser.tsx on lines 243..252
src/components/auth/ProfileUser.tsx on lines 253..262
src/components/auth/ProfileUser.tsx on lines 263..272

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 58.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 11 locations. Consider refactoring.
Open

                        <label className="flex flex-col font-semibold gap-3">
                            Country:
                            <FormInput
                                type="text"
                                placeholder="Rwanda"
Severity: Major
Found in src/components/auth/ProfileUser.tsx and 10 other locations - About 1 hr to fix
src/components/Layouts/UpdatePassword.tsx on lines 83..92
src/components/Layouts/UpdatePassword.tsx on lines 93..102
src/components/Layouts/UpdatePassword.tsx on lines 103..112
src/components/auth/ProfileUser.tsx on lines 174..183
src/components/auth/ProfileUser.tsx on lines 187..196
src/components/auth/ProfileUser.tsx on lines 197..206
src/components/auth/ProfileUser.tsx on lines 231..240
src/components/auth/ProfileUser.tsx on lines 243..252
src/components/auth/ProfileUser.tsx on lines 253..262
src/components/auth/ProfileUser.tsx on lines 263..272

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 58.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 11 locations. Consider refactoring.
Open

                        <label className="flex flex-col font-semibold gap-3">
                            City:
                            <FormInput
                                type="text"
                                placeholder="Kigali"
Severity: Major
Found in src/components/auth/ProfileUser.tsx and 10 other locations - About 1 hr to fix
src/components/Layouts/UpdatePassword.tsx on lines 83..92
src/components/Layouts/UpdatePassword.tsx on lines 93..102
src/components/Layouts/UpdatePassword.tsx on lines 103..112
src/components/auth/ProfileUser.tsx on lines 174..183
src/components/auth/ProfileUser.tsx on lines 187..196
src/components/auth/ProfileUser.tsx on lines 197..206
src/components/auth/ProfileUser.tsx on lines 221..230
src/components/auth/ProfileUser.tsx on lines 243..252
src/components/auth/ProfileUser.tsx on lines 253..262
src/components/auth/ProfileUser.tsx on lines 263..272

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 58.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 11 locations. Consider refactoring.
Open

                        <label className="flex flex-col font-semibold gap-3">
                            Secondary Address:
                            <FormInput
                                type="text"
                                placeholder="Muhanga"
Severity: Major
Found in src/components/auth/ProfileUser.tsx and 10 other locations - About 1 hr to fix
src/components/Layouts/UpdatePassword.tsx on lines 83..92
src/components/Layouts/UpdatePassword.tsx on lines 93..102
src/components/Layouts/UpdatePassword.tsx on lines 103..112
src/components/auth/ProfileUser.tsx on lines 174..183
src/components/auth/ProfileUser.tsx on lines 187..196
src/components/auth/ProfileUser.tsx on lines 197..206
src/components/auth/ProfileUser.tsx on lines 221..230
src/components/auth/ProfileUser.tsx on lines 231..240
src/components/auth/ProfileUser.tsx on lines 243..252
src/components/auth/ProfileUser.tsx on lines 263..272

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 58.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 11 locations. Consider refactoring.
Open

                        <label className="flex flex-col font-semibold gap-3">
                            Old Password:
                            <FormInput
                                type="password"
                                placeholder="***********"
Severity: Major
Found in src/components/Layouts/UpdatePassword.tsx and 10 other locations - About 1 hr to fix
src/components/Layouts/UpdatePassword.tsx on lines 93..102
src/components/Layouts/UpdatePassword.tsx on lines 103..112
src/components/auth/ProfileUser.tsx on lines 174..183
src/components/auth/ProfileUser.tsx on lines 187..196
src/components/auth/ProfileUser.tsx on lines 197..206
src/components/auth/ProfileUser.tsx on lines 221..230
src/components/auth/ProfileUser.tsx on lines 231..240
src/components/auth/ProfileUser.tsx on lines 243..252
src/components/auth/ProfileUser.tsx on lines 253..262
src/components/auth/ProfileUser.tsx on lines 263..272

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 58.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Function HandleGoogleLogin has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const HandleGoogleLogin = () => {
    const [searchParams] = useSearchParams();
    const token = searchParams.get('token');
    const message = searchParams.get('message');
    const { saveAccessToken } = useToken();
Severity: Minor
Found in src/components/HandleGoogleLogin.tsx - About 1 hr to fix

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

                <div className="text-neutral-white mx-4 tablet:mx-6 z-10">
                    <h1 className="font-semibold text-sm py-2 tablet:text-4xl">
                        Hello, {firstName}
                    </h1>
                    <p className="font-medium text-[0.6rem] tablet:text-[1rem]">
    Severity: Major
    Found in src/components/UserProfileHeader.tsx and 1 other location - About 1 hr to fix
    src/components/UserrProfileHeader.tsx on lines 36..44

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 57.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

                                <button
                                    className="bg-custom-gradient w-[11rem]  hover:scale-105  text-neutral-white text-center py-[2%]  rounded  text-[12px] mobile:w-[90%] ipad:max-w-[11rem] mobile:px-2"
                                    onClick={() => handleReviewForm()}
                                    data-testid="first-button-submit-review"
                                >
    Severity: Major
    Found in src/components/product/review/AllReview.tsx and 1 other location - About 1 hr to fix
    src/pages/SingleProduct.tsx on lines 196..204

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 57.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

                                            <button
                                                className="bg-custom-gradient w-[11rem]  hover:scale-105  text-neutral-white text-center py-[2%]  rounded  text-[12px] mobile:w-[90%] ipad:max-w-[11rem] mobile:px-2"
                                                onClick={() => handleReviewForm()}
                                                data-testid="first-button-submit-review"
                                            >
    Severity: Major
    Found in src/pages/SingleProduct.tsx and 1 other location - About 1 hr to fix
    src/components/product/review/AllReview.tsx on lines 134..142

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 57.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

                <div className="text-neutral-white mx-4 mt-5 tablet:mx-6 z-10">
                    <h1 className="font-semibold text-sm py-2 tablet:text-4xl">
                        Hello, {firstName}
                    </h1>
                    <p className="font-medium text-[0.6rem] tablet:text-[1rem]">
    Severity: Major
    Found in src/components/UserrProfileHeader.tsx and 1 other location - About 1 hr to fix
    src/components/UserProfileHeader.tsx on lines 48..56

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 57.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Function ChatRedirections has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    const ChatRedirections = () => {
        return (
            <AnimatePresence>
                <motion.div
                    className="parent fixed inset-0 w-full h-full bg-neutr backdrop-blur-sm z-30
    Severity: Minor
    Found in src/components/Redirection/ChatRedirections.tsx - About 1 hr to fix

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

                              <div>
                                  <h2 className="text-sm ipad:text-base font-semibold text-neutral-black/70">
                                      Total Rejected Sales
                                  </h2>
                                  <div className="text-base ipad:text-2xl font-bold">
      Severity: Major
      Found in src/pages/dashboard/seller/SellerDashboard.tsx and 1 other location - About 1 hr to fix
      src/pages/dashboard/seller/SellerDashboard.tsx on lines 180..187

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 56.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

                              <div>
                                  <h2 className="text-sm ipad:text-base font-semibold text-neutral-black/70">
                                      Total Approved Sales
                                  </h2>
                                  <div className="text-base ipad:text-2xl font-bold">
      Severity: Major
      Found in src/pages/dashboard/seller/SellerDashboard.tsx and 1 other location - About 1 hr to fix
      src/pages/dashboard/seller/SellerDashboard.tsx on lines 188..195

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 56.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Function onSubmit has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          const onSubmit: SubmitHandler<reviewFormSchemaType> = async (
              data: reviewFormSchemaType,
          ) => {
              try {
                  const { ratings, feedBack } = data;
      Severity: Minor
      Found in src/components/Forms/ReviewForm.tsx - About 1 hr to fix

        Function onSubmit has 26 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            const onSubmit: SubmitHandler<queryTypes> = async (formData: queryTypes) => {
                try {
                    const data = await dispatch(
                        sendQuery({
                            lastName: formData.lastName,
        Severity: Minor
        Found in src/pages/Contacts.tsx - About 1 hr to fix

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

          interface OrderModalProps {
              id: string;
              idx: number;
              item: DynamicData;
              state: DynamicData;
          Severity: Major
          Found in src/components/cards/orderModel.tsx and 1 other location - About 1 hr to fix
          src/components/cards/SellerProductsModal.tsx on lines 11..17

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 55.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

          interface SellerModalProps {
              id: string;
              idx: number;
              item: DynamicData;
              state: DynamicData;
          Severity: Major
          Found in src/components/cards/SellerProductsModal.tsx and 1 other location - About 1 hr to fix
          src/components/cards/orderModel.tsx on lines 6..12

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 55.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 3 locations. Consider refactoring.
          Open

              const {
                  register,
                  handleSubmit,
                  setValue,
                  formState: { errors },
          Severity: Major
          Found in src/components/Forms/ReviewForm.tsx and 2 other locations - About 55 mins to fix
          src/components/Layouts/UpdatePassword.tsx on lines 26..33
          src/pages/Contacts.tsx on lines 31..38

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 54.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 3 locations. Consider refactoring.
          Open

              const {
                  handleSubmit,
                  register,
                  reset,
                  formState: { errors },
          Severity: Major
          Found in src/components/Layouts/UpdatePassword.tsx and 2 other locations - About 55 mins to fix
          src/components/Forms/ReviewForm.tsx on lines 29..36
          src/pages/Contacts.tsx on lines 31..38

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 54.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Severity
          Category
          Status
          Source
          Language