Showing 2,206 of 2,206 total issues

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

const writeCsvFile = data => {
  let csvContents =
    'Dependency,Type,Most Recent Version,Most Recent Version Date,Our Version,Our Version Date,Our Version Freshness in Days';

  data
Severity: Minor
Found in scripts/esmDependencyCheck.js - About 1 hr to fix

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

    const Image = props => {
      const { children = null, src, useLargeImages = false, ...rest } = props;
      const isProgrammeImage = src.startsWith(
        'https://ichef.bbci.co.uk/images/ic/',
      );
    Severity: Minor
    Found in src/app/legacy/components/Promo/image.jsx - About 1 hr to fix

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

      const animationStory = (dir, script, service) => {
        const isOpen = boolean('Open', false);
        return (
          <Navigation script={script} service={service} dir={dir}>
            <CanonicalDropdown isOpen={isOpen}>
      Severity: Minor
      Found in src/app/legacy/psammead/psammead-navigation/src/index.stories.jsx - About 1 hr to fix

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

        const inputs = () => {
          // capitalization is only for presentation purpose on the knob
          const options = Object.keys(svgs)
            .filter(key => key !== 'BBC_BLOCKS')
            .map(key => key.charAt(0).toUpperCase() + key.slice(1));
        Severity: Minor
        Found in src/app/legacy/psammead/psammead-navigation/src/index.stories.jsx - About 1 hr to fix

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

          const inputs = (service = 'news') => {
            const options = Object.keys(svgs).filter(key => key !== 'BBC_BLOCKS');
            const svgChoice = select('Service SVG', options, service).toLowerCase();
            const productInput = text('Product', 'BBC News');
            const serviceLocalisedNameInput = text('Localised service name', 'Yoruba');
          Severity: Minor
          Found in src/app/legacy/psammead/psammead-brand/src/index.stories.jsx - About 1 hr to fix

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

            const getCampaignID = (pageType: CampaignPageTypes) => {
              const campaignID = {
                [ARTICLE_PAGE]: 'article',
                [MEDIA_ARTICLE_PAGE]: 'article-sfv',
                [FRONT_PAGE]: 'index-home',
            Severity: Minor
            Found in src/app/contexts/EventTrackingContext/index.tsx - About 1 hr to fix

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

              const extractHeaders = (headers: IncomingHttpHeaders) => {
                let isUK = null;
                let showCookieBannerBasedOnCountry = true;
                if (headers['x-bbc-edge-isuk']) {
                  isUK = headers['x-bbc-edge-isuk'] === 'yes';
              Severity: Minor
              Found in src/server/utilities/extractHeaders/index.ts - About 1 hr to fix

                Consider simplifying this complex logical expression.
                Open

                    if (Array.isArray(group.items)) {
                      newGroup.items = group.items.filter(item => {
                        const itemType = item.assetTypeCode || item.cpsType;
                        const isValidItemType = whitelist.includes(itemType);
                        const isValidContentType =

                  Consider simplifying this complex logical expression.
                  Open

                              if (!F && !(F = "undefined" != typeof crypto && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || "undefined" != typeof msCrypto && "function" == typeof msCrypto.getRandomValues && msCrypto.getRandomValues.bind(msCrypto)))
                                  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
                  Severity: Major
                  Found in public/vendor/cwr.js - About 1 hr to fix

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

                        const { container } = render(
                          <ContextWrap pageType={ARTICLE_PAGE} service="news" isAmp={false}>
                            <OptimizelyArticleCompleteTracking />
                          </ContextWrap>,
                        );
                    src/app/legacy/containers/OptimizelyArticleCompleteTracking/index.test.jsx on lines 95..99
                    src/app/legacy/containers/OptimizelyArticleCompleteTracking/index.test.jsx on lines 110..114
                    src/app/legacy/containers/OptimizelyArticleCompleteTracking/index.test.jsx on lines 174..178

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

                    jest.mock('#containers/PageHandlers/withContexts', () => Component => {
                      return props => (
                        <div id="ContextsContainer">
                          <Component {...props} />
                        </div>
                    Severity: Major
                    Found in src/app/pages/FrontPage/index.test.jsx and 9 other locations - About 1 hr to fix
                    src/app/pages/FeatureIdxPage/index.test.jsx on lines 73..79
                    src/app/pages/FeatureIdxPage/index.test.jsx on lines 81..87
                    src/app/pages/FeatureIdxPage/index.test.jsx on lines 89..95
                    src/app/pages/FeatureIdxPage/index.test.jsx on lines 97..103
                    src/app/pages/FeatureIdxPage/index.test.jsx on lines 105..111
                    src/app/pages/FrontPage/index.test.jsx on lines 82..88
                    src/app/pages/FrontPage/index.test.jsx on lines 90..96
                    src/app/pages/FrontPage/index.test.jsx on lines 98..104
                    src/app/pages/FrontPage/index.test.jsx on lines 106..112

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

                    jest.mock('#containers/PageHandlers/withContexts', () => Component => {
                      return props => (
                        <div id="ContextsContainer">
                          <Component {...props} />
                        </div>
                    Severity: Major
                    Found in src/app/pages/FeatureIdxPage/index.test.jsx and 9 other locations - About 1 hr to fix
                    src/app/pages/FeatureIdxPage/index.test.jsx on lines 73..79
                    src/app/pages/FeatureIdxPage/index.test.jsx on lines 81..87
                    src/app/pages/FeatureIdxPage/index.test.jsx on lines 89..95
                    src/app/pages/FeatureIdxPage/index.test.jsx on lines 97..103
                    src/app/pages/FrontPage/index.test.jsx on lines 74..80
                    src/app/pages/FrontPage/index.test.jsx on lines 82..88
                    src/app/pages/FrontPage/index.test.jsx on lines 90..96
                    src/app/pages/FrontPage/index.test.jsx on lines 98..104
                    src/app/pages/FrontPage/index.test.jsx on lines 106..112

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

                    jest.mock('#containers/PageHandlers/withContexts', () => Component => {
                      return props => (
                        <div id="ContextsContainer">
                          <Component {...props} />
                        </div>
                    Severity: Major
                    Found in src/app/pages/FeatureIdxPage/index.test.jsx and 9 other locations - About 1 hr to fix
                    src/app/pages/FeatureIdxPage/index.test.jsx on lines 81..87
                    src/app/pages/FeatureIdxPage/index.test.jsx on lines 89..95
                    src/app/pages/FeatureIdxPage/index.test.jsx on lines 97..103
                    src/app/pages/FeatureIdxPage/index.test.jsx on lines 105..111
                    src/app/pages/FrontPage/index.test.jsx on lines 74..80
                    src/app/pages/FrontPage/index.test.jsx on lines 82..88
                    src/app/pages/FrontPage/index.test.jsx on lines 90..96
                    src/app/pages/FrontPage/index.test.jsx on lines 98..104
                    src/app/pages/FrontPage/index.test.jsx on lines 106..112

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

                    jest.mock('#containers/PageHandlers/withError', () => Component => {
                      return props => (
                        <div id="ErrorContainer">
                          <Component {...props} />
                        </div>
                    Severity: Major
                    Found in src/app/pages/FrontPage/index.test.jsx and 9 other locations - About 1 hr to fix
                    src/app/pages/FeatureIdxPage/index.test.jsx on lines 73..79
                    src/app/pages/FeatureIdxPage/index.test.jsx on lines 81..87
                    src/app/pages/FeatureIdxPage/index.test.jsx on lines 89..95
                    src/app/pages/FeatureIdxPage/index.test.jsx on lines 97..103
                    src/app/pages/FeatureIdxPage/index.test.jsx on lines 105..111
                    src/app/pages/FrontPage/index.test.jsx on lines 74..80
                    src/app/pages/FrontPage/index.test.jsx on lines 82..88
                    src/app/pages/FrontPage/index.test.jsx on lines 98..104
                    src/app/pages/FrontPage/index.test.jsx on lines 106..112

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

                    jest.mock('#containers/PageHandlers/withError', () => Component => {
                      return props => (
                        <div id="ErrorContainer">
                          <Component {...props} />
                        </div>
                    Severity: Major
                    Found in src/app/pages/FeatureIdxPage/index.test.jsx and 9 other locations - About 1 hr to fix
                    src/app/pages/FeatureIdxPage/index.test.jsx on lines 73..79
                    src/app/pages/FeatureIdxPage/index.test.jsx on lines 81..87
                    src/app/pages/FeatureIdxPage/index.test.jsx on lines 97..103
                    src/app/pages/FeatureIdxPage/index.test.jsx on lines 105..111
                    src/app/pages/FrontPage/index.test.jsx on lines 74..80
                    src/app/pages/FrontPage/index.test.jsx on lines 82..88
                    src/app/pages/FrontPage/index.test.jsx on lines 90..96
                    src/app/pages/FrontPage/index.test.jsx on lines 98..104
                    src/app/pages/FrontPage/index.test.jsx on lines 106..112

                    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

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

                        const { container } = render(
                          <ContextWrap pageType={ARTICLE_PAGE} service="news" isAmp={false}>
                            <OptimizelyArticleCompleteTracking />
                          </ContextWrap>,
                        );
                    src/app/legacy/containers/OptimizelyArticleCompleteTracking/index.test.jsx on lines 95..99
                    src/app/legacy/containers/OptimizelyArticleCompleteTracking/index.test.jsx on lines 134..138
                    src/app/legacy/containers/OptimizelyArticleCompleteTracking/index.test.jsx on lines 174..178

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

                    jest.mock('#containers/PageHandlers/withPageWrapper', () => Component => {
                      return props => (
                        <div id="PageWrapperContainer">
                          <Component {...props} />
                        </div>
                    Severity: Major
                    Found in src/app/pages/FrontPage/index.test.jsx and 9 other locations - About 1 hr to fix
                    src/app/pages/FeatureIdxPage/index.test.jsx on lines 73..79
                    src/app/pages/FeatureIdxPage/index.test.jsx on lines 81..87
                    src/app/pages/FeatureIdxPage/index.test.jsx on lines 89..95
                    src/app/pages/FeatureIdxPage/index.test.jsx on lines 97..103
                    src/app/pages/FeatureIdxPage/index.test.jsx on lines 105..111
                    src/app/pages/FrontPage/index.test.jsx on lines 74..80
                    src/app/pages/FrontPage/index.test.jsx on lines 90..96
                    src/app/pages/FrontPage/index.test.jsx on lines 98..104
                    src/app/pages/FrontPage/index.test.jsx on lines 106..112

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

                    jest.mock('#containers/PageHandlers/withPageWrapper', () => Component => {
                      return props => (
                        <div id="PageWrapperContainer">
                          <Component {...props} />
                        </div>
                    Severity: Major
                    Found in src/app/pages/FeatureIdxPage/index.test.jsx and 9 other locations - About 1 hr to fix
                    src/app/pages/FeatureIdxPage/index.test.jsx on lines 73..79
                    src/app/pages/FeatureIdxPage/index.test.jsx on lines 89..95
                    src/app/pages/FeatureIdxPage/index.test.jsx on lines 97..103
                    src/app/pages/FeatureIdxPage/index.test.jsx on lines 105..111
                    src/app/pages/FrontPage/index.test.jsx on lines 74..80
                    src/app/pages/FrontPage/index.test.jsx on lines 82..88
                    src/app/pages/FrontPage/index.test.jsx on lines 90..96
                    src/app/pages/FrontPage/index.test.jsx on lines 98..104
                    src/app/pages/FrontPage/index.test.jsx on lines 106..112

                    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

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

                        const { container } = render(
                          <ContextWrap pageType={ARTICLE_PAGE} service="news" isAmp={false}>
                            <OptimizelyArticleCompleteTracking />
                          </ContextWrap>,
                        );
                    src/app/legacy/containers/OptimizelyArticleCompleteTracking/index.test.jsx on lines 95..99
                    src/app/legacy/containers/OptimizelyArticleCompleteTracking/index.test.jsx on lines 110..114
                    src/app/legacy/containers/OptimizelyArticleCompleteTracking/index.test.jsx on lines 134..138

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

                    jest.mock('#containers/PageHandlers/withContexts', () => Component => {
                      return props => (
                        <div id="ContextsContainer">
                          <Component {...props} />
                        </div>
                    Severity: Major
                    Found in src/app/pages/FrontPage/index.test.jsx and 9 other locations - About 1 hr to fix
                    src/app/pages/FeatureIdxPage/index.test.jsx on lines 73..79
                    src/app/pages/FeatureIdxPage/index.test.jsx on lines 81..87
                    src/app/pages/FeatureIdxPage/index.test.jsx on lines 89..95
                    src/app/pages/FeatureIdxPage/index.test.jsx on lines 97..103
                    src/app/pages/FeatureIdxPage/index.test.jsx on lines 105..111
                    src/app/pages/FrontPage/index.test.jsx on lines 74..80
                    src/app/pages/FrontPage/index.test.jsx on lines 82..88
                    src/app/pages/FrontPage/index.test.jsx on lines 90..96
                    src/app/pages/FrontPage/index.test.jsx on lines 98..104

                    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

                    Severity
                    Category
                    Status
                    Source
                    Language