airbnb/caravel

View on GitHub
docs/src/pages/index.tsx

Summary

Maintainability
F
5 days
Test Coverage

File index.tsx has 704 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
Severity: Major
Found in docs/src/pages/index.tsx - About 1 day to fix

    Function Home has 277 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export default function Home(): JSX.Element {
      const slider = useRef(null);
    
      const [slideIndex, setSlideIndex] = useState(0);
    
    
    Severity: Major
    Found in docs/src/pages/index.tsx - About 1 day to fix

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

        const changeToLight = () => {
          const navbar = document.body.querySelector('.navbar');
          const logo = document.body.querySelector('.navbar__logo img');
          navbar.classList.remove('navbar--dark');
          logo.setAttribute('src', '/img/superset-logo-horiz.svg');
      Severity: Major
      Found in docs/src/pages/index.tsx and 1 other location - About 2 hrs to fix
      docs/src/pages/index.tsx on lines 466..471

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

      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

        const changeToDark = () => {
          const navbar = document.body.querySelector('.navbar');
          const logo = document.body.querySelector('.navbar__logo img');
          navbar.classList.add('navbar--dark');
          logo.setAttribute('src', '/img/superset-logo-horiz-dark.svg');
      Severity: Major
      Found in docs/src/pages/index.tsx and 1 other location - About 2 hrs to fix
      docs/src/pages/index.tsx on lines 473..478

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

      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 4 locations. Consider refactoring.
      Open

                    <li
                      className={`toggle ${slideIndex === 1 ? 'active' : null}`}
                      onClick={() => slider.current.goTo(1)}
                      role="button"
                    >
      Severity: Major
      Found in docs/src/pages/index.tsx and 3 other locations - About 1 hr to fix
      docs/src/pages/index.tsx on lines 598..604
      docs/src/pages/index.tsx on lines 612..618
      docs/src/pages/index.tsx on lines 619..625

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

      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 4 locations. Consider refactoring.
      Open

                    <li
                      className={`toggle ${slideIndex === 0 ? 'active' : null}`}
                      onClick={() => slider.current.goTo(0)}
                      role="button"
                    >
      Severity: Major
      Found in docs/src/pages/index.tsx and 3 other locations - About 1 hr to fix
      docs/src/pages/index.tsx on lines 605..611
      docs/src/pages/index.tsx on lines 612..618
      docs/src/pages/index.tsx on lines 619..625

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

      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 4 locations. Consider refactoring.
      Open

                    <li
                      className={`toggle ${slideIndex === 2 ? 'active' : null}`}
                      onClick={() => slider.current.goTo(2)}
                      role="button"
                    >
      Severity: Major
      Found in docs/src/pages/index.tsx and 3 other locations - About 1 hr to fix
      docs/src/pages/index.tsx on lines 598..604
      docs/src/pages/index.tsx on lines 605..611
      docs/src/pages/index.tsx on lines 619..625

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

      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 4 locations. Consider refactoring.
      Open

                    <li
                      className={`toggle ${slideIndex === 3 ? 'active' : null}`}
                      onClick={() => slider.current.goTo(3)}
                      role="button"
                    >
      Severity: Major
      Found in docs/src/pages/index.tsx and 3 other locations - About 1 hr to fix
      docs/src/pages/index.tsx on lines 598..604
      docs/src/pages/index.tsx on lines 605..611
      docs/src/pages/index.tsx on lines 612..618

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

      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 6 locations. Consider refactoring.
      Open

                    <div className="item">
                      <img src="/img/check-icon.svg" alt="check-icon" />
                      <div>
                        <strong>Virtual datasets</strong> for ad-hoc data exploration
                      </div>
      Severity: Major
      Found in docs/src/pages/index.tsx and 5 other locations - About 1 hr to fix
      docs/src/pages/index.tsx on lines 656..661
      docs/src/pages/index.tsx on lines 669..675
      docs/src/pages/index.tsx on lines 676..682
      docs/src/pages/index.tsx on lines 683..689
      docs/src/pages/index.tsx on lines 690..695

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

      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 6 locations. Consider refactoring.
      Open

                    <div className="item">
                      <img src="/img/check-icon.svg" alt="check-icon" />
                      <div>
                        <strong>40+ pre-installed visualizations</strong>
                      </div>
      Severity: Major
      Found in docs/src/pages/index.tsx and 5 other locations - About 1 hr to fix
      docs/src/pages/index.tsx on lines 669..675
      docs/src/pages/index.tsx on lines 676..682
      docs/src/pages/index.tsx on lines 683..689
      docs/src/pages/index.tsx on lines 690..695
      docs/src/pages/index.tsx on lines 703..708

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

      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 6 locations. Consider refactoring.
      Open

                    <div className="item">
                      <img src="/img/check-icon.svg" alt="check-icon" />
                      <div>
                        <strong>Jinja templating and dashboard filters</strong> for
                        creating interactive dashboards
      Severity: Major
      Found in docs/src/pages/index.tsx and 5 other locations - About 1 hr to fix
      docs/src/pages/index.tsx on lines 656..661
      docs/src/pages/index.tsx on lines 669..675
      docs/src/pages/index.tsx on lines 683..689
      docs/src/pages/index.tsx on lines 690..695
      docs/src/pages/index.tsx on lines 703..708

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

      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 6 locations. Consider refactoring.
      Open

                    <div className="item">
                      <img src="/img/check-icon.svg" alt="check-icon" />
                      <div>
                        <strong>Data caching</strong> for the faster load time of
                        charts and dashboards
      Severity: Major
      Found in docs/src/pages/index.tsx and 5 other locations - About 1 hr to fix
      docs/src/pages/index.tsx on lines 656..661
      docs/src/pages/index.tsx on lines 676..682
      docs/src/pages/index.tsx on lines 683..689
      docs/src/pages/index.tsx on lines 690..695
      docs/src/pages/index.tsx on lines 703..708

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

      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 6 locations. Consider refactoring.
      Open

                    <div className="item">
                      <img src="/img/check-icon.svg" alt="check-icon" />
                      <div>
                        <strong>CSS templates</strong> to customize charts and
                        dashboards to your brand’s look and feel
      Severity: Major
      Found in docs/src/pages/index.tsx and 5 other locations - About 1 hr to fix
      docs/src/pages/index.tsx on lines 656..661
      docs/src/pages/index.tsx on lines 669..675
      docs/src/pages/index.tsx on lines 676..682
      docs/src/pages/index.tsx on lines 690..695
      docs/src/pages/index.tsx on lines 703..708

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

      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 6 locations. Consider refactoring.
      Open

                    <div className="item">
                      <img src="/img/check-icon.svg" alt="check-icon" />
                      <div>
                        <strong>Semantic layer</strong> for SQL data transformations
                      </div>
      Severity: Major
      Found in docs/src/pages/index.tsx and 5 other locations - About 1 hr to fix
      docs/src/pages/index.tsx on lines 656..661
      docs/src/pages/index.tsx on lines 669..675
      docs/src/pages/index.tsx on lines 676..682
      docs/src/pages/index.tsx on lines 683..689
      docs/src/pages/index.tsx on lines 703..708

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

      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

      const StyledFeaturesList = styled('ul')`
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        width: 100%;
      Severity: Major
      Found in docs/src/pages/index.tsx and 1 other location - About 1 hr to fix
      docs/src/pages/index.tsx on lines 65..115

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

      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

      const StyledTitleContainer = styled('div')`
        position: relative;
        padding: 130px 20px 0;
        margin-bottom: 160px;
        background-image: url('/img/grid-background.jpg');
      Severity: Major
      Found in docs/src/pages/index.tsx and 1 other location - About 1 hr to fix
      docs/src/pages/index.tsx on lines 196..251

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

      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

                    <span className="github-button">
                      <GitHubButton
                        href="https://github.com/apache/superset"
                        data-size="large"
                        data-show-count="true"
      Severity: Major
      Found in docs/src/pages/index.tsx and 2 other locations - About 45 mins to fix
      docs/src/pages/index.tsx on lines 533..542
      docs/src/pages/index.tsx on lines 543..552

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

      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

                    <span className="github-button">
                      <GitHubButton
                        href="https://github.com/apache/superset/fork"
                        data-size="large"
                        data-show-count="true"
      Severity: Major
      Found in docs/src/pages/index.tsx and 2 other locations - About 45 mins to fix
      docs/src/pages/index.tsx on lines 523..532
      docs/src/pages/index.tsx on lines 533..542

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

      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

                    <span className="github-button">
                      <GitHubButton
                        href="https://github.com/apache/superset/subscription"
                        data-size="large"
                        data-show-count="true"
      Severity: Major
      Found in docs/src/pages/index.tsx and 2 other locations - About 45 mins to fix
      docs/src/pages/index.tsx on lines 523..532
      docs/src/pages/index.tsx on lines 543..552

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

      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

      There are no issues that match your filters.

      Category
      Status