EscolaLMS/Front

View on GitHub

Showing 559 of 559 total issues

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

        <div className="search-container">
          <SearchCourses
            onItemSelected={(item) => history.push(`/courses/${item.id}`)}
            onInputSubmitted={(input) =>
              history.push(`/courses/?title=${input}`)
Severity: Major
Found in src/components/_App/Navbar/index.tsx and 1 other location - About 1 hr to fix
src/components/_App/Navbar/index.tsx on lines 428..435

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 70.

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 WebinarsContainerItems has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const WebinarsContainerItems = () => {
  const { params, setParams, webinars } = useContext(WebinarsContext);
  const loading = webinars?.loading;
  const meta = webinars?.list?.meta;
  const theme = useTheme();
Severity: Minor
Found in src/components/Webinars/List/WebinarsContainer/Items/index.tsx - About 1 hr to fix

    Function EventsContainerItems has 43 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    const EventsContainerItems = () => {
      const { params, setParams, events } = useContext(EventsContext);
      const eventLoading = events?.loading;
      const eventsMeta = events?.list?.meta;
      const theme = useTheme();
    Severity: Minor
    Found in src/components/Events/List/EventsContainer/Items/index.tsx - About 1 hr to fix

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

      export const NoDataStyles = styled.div`
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
      src/components/Profile/NoData/styles.tsx on lines 4..19

      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 69.

      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

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

      export const NoDataStyles = styled.div`
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
      Severity: Major
      Found in src/components/Profile/NoData/styles.tsx and 1 other location - About 1 hr to fix
      src/components/Profile/ProfileStationaryEvents/NoData/NoDataStyles.ts on lines 4..19

      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 69.

      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
                  mode={"secondary outline"}
                  onClick={() => {
                    handleSortChange("DESC");
                    setMobileDrawerState({
      Severity: Major
      Found in src/components/Courses/CoursesCollection/coursesDrawer.tsx and 1 other location - About 1 hr to fix
      src/components/Courses/CoursesCollection/coursesDrawer.tsx on lines 80..91

      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 68.

      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

          <svg
            width="18"
            height="18"
            viewBox="0 0 18 18"
            fill="none"
      Severity: Major
      Found in src/icons/index.tsx and 1 other location - About 1 hr to fix
      src/icons/index.tsx on lines 441..456

      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 68.

      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

              <g id="Group_9" data-name="Group 9" transform="translate(-0.5 -0.5)">
                <path
                  id="Path_16"
                  data-name="Path 16"
                  d="M117.86,4.89,122.646.117a.4.4,0,1,1,.566.568l-4.5,4.489,4.5,4.488a.4.4,0,0,1-.567.568L117.86,5.458a.4.4,0,0,1,0-.568Z"
      Severity: Major
      Found in src/icons/index.tsx and 1 other location - About 1 hr to fix
      src/icons/index.tsx on lines 258..279

      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 68.

      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
                  mode={"secondary outline"}
                  onClick={() => {
                    handleSortChange("ASC");
                    setMobileDrawerState({
      Severity: Major
      Found in src/components/Courses/CoursesCollection/coursesDrawer.tsx and 1 other location - About 1 hr to fix
      src/components/Courses/CoursesCollection/coursesDrawer.tsx on lines 68..79

      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 68.

      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 useFirebase has 41 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      export const useFirebase = () => {
        const { token } = useContext(EscolaLMSContext);
      
        const requestPermissions = async () => {
          const result = await FirebaseMessaging.requestPermissions();
      Severity: Minor
      Found in src/hooks/useFirebase.ts - About 1 hr to fix

        Function PackagesContainerItems has 41 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        const PackagesContainerItems = () => {
          const { params, setParams, packages } = useContext(PackagesContext);
          const packagesLoading = packages?.loading;
          const packagesMeta = packages?.list?.meta;
          const theme = useTheme();
        Severity: Minor
        Found in src/components/Packages/List/PackagesContainer/Items/index.tsx - About 1 hr to fix

          Function CourseProgram has 41 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          const CourseProgram = () => {
            const { t } = useTranslation();
          
            const { id } = useParams<{ id: string }>();
            const { program, fetchProgram } = useContext(EscolaLMSContext);
          Severity: Minor
          Found in src/pages/courses/preview/index.tsx - About 1 hr to fix

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

            export const IconUsers = () => (
              <svg
                width="22"
                height="22"
                viewBox="0 0 22 22"
            Severity: Major
            Found in src/icons/index.tsx and 10 other locations - About 1 hr to fix
            src/icons/index.tsx on lines 283..296
            src/icons/index.tsx on lines 298..311
            src/icons/index.tsx on lines 313..326
            src/icons/index.tsx on lines 817..830
            src/icons/index.tsx on lines 832..845
            src/icons/index.tsx on lines 989..1002
            src/icons/index.tsx on lines 1004..1017
            src/icons/index.tsx on lines 1019..1032
            src/icons/index.tsx on lines 1034..1047
            src/icons/index.tsx on lines 1049..1062

            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 67.

            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

                      {filteredConsultations.map((consultation) => (
                        <Col key={consultation.id} xs={12} sm={6} md={4} lg={3}>
                          <ConsultationCard consultation={consultation} />
                        </Col>
                      ))}
            Severity: Major
            Found in src/components/Consultations/ConsultationsSlider/index.tsx and 1 other location - About 1 hr to fix
            src/components/Consultations/List/ConsultationsCollection/index.tsx on lines 42..46

            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 67.

            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

            export const IconUser = () => (
              <svg
                width="19"
                height="21"
                viewBox="0 0 19 21"
            Severity: Major
            Found in src/icons/index.tsx and 10 other locations - About 1 hr to fix
            src/icons/index.tsx on lines 283..296
            src/icons/index.tsx on lines 298..311
            src/icons/index.tsx on lines 313..326
            src/icons/index.tsx on lines 817..830
            src/icons/index.tsx on lines 832..845
            src/icons/index.tsx on lines 974..987
            src/icons/index.tsx on lines 989..1002
            src/icons/index.tsx on lines 1004..1017
            src/icons/index.tsx on lines 1019..1032
            src/icons/index.tsx on lines 1049..1062

            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 67.

            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

            export const StarOrange = () => (
              <svg
                width="21"
                height="21"
                viewBox="0 0 21 21"
            Severity: Major
            Found in src/icons/index.tsx and 10 other locations - About 1 hr to fix
            src/icons/index.tsx on lines 283..296
            src/icons/index.tsx on lines 298..311
            src/icons/index.tsx on lines 817..830
            src/icons/index.tsx on lines 832..845
            src/icons/index.tsx on lines 974..987
            src/icons/index.tsx on lines 989..1002
            src/icons/index.tsx on lines 1004..1017
            src/icons/index.tsx on lines 1019..1032
            src/icons/index.tsx on lines 1034..1047
            src/icons/index.tsx on lines 1049..1062

            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 67.

            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

            export const DownloadIcon = () => (
              <svg
                width="16"
                height="20"
                viewBox="0 0 16 20"
            Severity: Major
            Found in src/icons/index.tsx and 10 other locations - About 1 hr to fix
            src/icons/index.tsx on lines 283..296
            src/icons/index.tsx on lines 298..311
            src/icons/index.tsx on lines 313..326
            src/icons/index.tsx on lines 832..845
            src/icons/index.tsx on lines 974..987
            src/icons/index.tsx on lines 989..1002
            src/icons/index.tsx on lines 1004..1017
            src/icons/index.tsx on lines 1019..1032
            src/icons/index.tsx on lines 1034..1047
            src/icons/index.tsx on lines 1049..1062

            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 67.

            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

            export const IconChevronDoubleUp = () => (
              <svg
                width="15"
                height="15"
                viewBox="0 0 15 15"
            Severity: Major
            Found in src/icons/index.tsx and 10 other locations - About 1 hr to fix
            src/icons/index.tsx on lines 283..296
            src/icons/index.tsx on lines 298..311
            src/icons/index.tsx on lines 313..326
            src/icons/index.tsx on lines 817..830
            src/icons/index.tsx on lines 832..845
            src/icons/index.tsx on lines 974..987
            src/icons/index.tsx on lines 989..1002
            src/icons/index.tsx on lines 1019..1032
            src/icons/index.tsx on lines 1034..1047
            src/icons/index.tsx on lines 1049..1062

            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 67.

            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

            export const IconDoubleUser = () => (
              <svg
                width="21"
                height="21"
                viewBox="0 0 21 21"
            Severity: Major
            Found in src/icons/index.tsx and 10 other locations - About 1 hr to fix
            src/icons/index.tsx on lines 283..296
            src/icons/index.tsx on lines 298..311
            src/icons/index.tsx on lines 313..326
            src/icons/index.tsx on lines 817..830
            src/icons/index.tsx on lines 832..845
            src/icons/index.tsx on lines 974..987
            src/icons/index.tsx on lines 989..1002
            src/icons/index.tsx on lines 1004..1017
            src/icons/index.tsx on lines 1019..1032
            src/icons/index.tsx on lines 1034..1047

            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 67.

            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

            export const IconLocation = () => (
              <svg
                width="25"
                height="25"
                viewBox="0 0 25 25"
            Severity: Major
            Found in src/icons/index.tsx and 10 other locations - About 1 hr to fix
            src/icons/index.tsx on lines 283..296
            src/icons/index.tsx on lines 298..311
            src/icons/index.tsx on lines 313..326
            src/icons/index.tsx on lines 817..830
            src/icons/index.tsx on lines 832..845
            src/icons/index.tsx on lines 974..987
            src/icons/index.tsx on lines 1004..1017
            src/icons/index.tsx on lines 1019..1032
            src/icons/index.tsx on lines 1034..1047
            src/icons/index.tsx on lines 1049..1062

            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 67.

            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