Showing 2,206 of 2,206 total issues

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

        <Grid
          dir={dir}
          columns={{
            group0: 6,
            group1: 6,
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 271..311
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 563..603
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 691..731
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 732..772
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 773..813
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 814..854
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 855..895
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1710..1750
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1751..1791
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1833..1873
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1899..1939
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1989..2029
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 2030..2070
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 2071..2111

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

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

        <Grid
          dir={dir}
          columns={{
            group0: 6,
            group1: 6,
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 271..311
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 563..603
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 691..731
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 732..772
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 773..813
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 814..854
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 855..895
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1710..1750
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1751..1791
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1792..1832
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1833..1873
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1989..2029
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 2030..2070
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 2071..2111

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

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

            238: function(e, t, n) {
                var r;
                !function(o, i) {
                    "use strict";
                    var s = "function",
Severity: Major
Found in public/vendor/cwr.js - About 1 day to fix

    File storyRowsSplitter.test.jsx has 515 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    import range from 'ramda/src/range';
    import getRows from './storyRowsSplitter';
    
    const numberOfStories = {
      0: {

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

        describe('Manifest json', () => {
          it('should serve a file for valid service paths', async () => {
            await makeRequest('/news/articles/manifest.json');
            expect(sendFileSpy.mock.calls[0][0]).toEqual(
              path.join(__dirname, '/public/news/manifest.json'),
      Severity: Major
      Found in src/server/index.test.jsx and 1 other location - About 1 day to fix
      src/server/index.test.jsx on lines 855..875

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

      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

      describe('StoryPromo list', () => {
        it('should render correctly', () => {
          const { container } = render(
            <StoryPromoUl>
              <StoryPromoLi>
      src/app/legacy/psammead/psammead-story-promo-list/src/index.test.jsx on lines 48..70

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

      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

      describe('StoryPromo list base', () => {
        it('should render correctly', () => {
          const { container } = render(
            <StoryPromoUl>
              <StoryPromoLiBase>
      src/app/legacy/psammead/psammead-story-promo-list/src/index.test.jsx on lines 24..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 200.

      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

        describe('Service workers', () => {
          it('should serve a file for existing service workers', async () => {
            await makeRequest('/news/articles/sw.js');
            expect(sendFileSpy.mock.calls[0][0]).toEqual(
              path.join(__dirname, '/public/sw.js'),
      Severity: Major
      Found in src/server/index.test.jsx and 1 other location - About 1 day to fix
      src/server/index.test.jsx on lines 877..897

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

      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

      export const getServiceThemeBundleData = () =>
        services
          .map(service => {
            const bundlesData = getBundlesData(
              jsFiles.filter(file =>
      Severity: Major
      Found in scripts/bundleSize/getBundleData.js and 1 other location - About 1 day to fix
      scripts/bundleSize/getBundleData.js on lines 93..111

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

      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

      export const getServiceConfigBundleData = () =>
        services
          .map(service => {
            const bundlesData = getBundlesData(
              jsFiles.filter(file => file.startsWith(`${bundleType}.${service}`)),
      Severity: Major
      Found in scripts/bundleSize/getBundleData.js and 1 other location - About 1 day to fix
      scripts/bundleSize/getBundleData.js on lines 113..133

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

      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

      File index.stories.jsx has 497 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      import React from 'react';
      import styled from '@emotion/styled';
      import moment from 'moment';
      import { storiesOf } from '@storybook/react';
      import {
      Severity: Minor
      Found in src/app/lib/utilities/moment/index.stories.jsx - About 7 hrs to fix

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

        test('format month case', () => {
          const months = {
            nominative:
              'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split(
                '_'
        Severity: Major
        Found in src/app/legacy/psammead/psammead-locales/moment/uk.test.js and 2 other locations - About 7 hrs to fix
        src/app/legacy/psammead/psammead-locales/moment/ru.test.js on lines 160..184
        src/app/legacy/psammead/psammead-locales/moment/ru.test.js on lines 186..210

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

        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

        export const contentBlockWithEmptyLinkFragment = {
          content: {
            model: {
              blocks: [
                {
        src/app/components/Byline/utilities/getAuthorTwitterHandle/fixture/index.js on lines 559..621
        src/app/components/Byline/utilities/getAuthorTwitterHandle/fixture/index.js on lines 623..685

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

        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

        test('format month case', () => {
          const months = {
            nominative:
              'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split(
                '_'
        Severity: Major
        Found in src/app/legacy/psammead/psammead-locales/moment/ru.test.js and 2 other locations - About 7 hrs to fix
        src/app/legacy/psammead/psammead-locales/moment/ru.test.js on lines 186..210
        src/app/legacy/psammead/psammead-locales/moment/uk.test.js on lines 131..155

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

        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

        test('format month short case', () => {
          const monthsShort = {
            nominative:
              'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split(
                '_'
        Severity: Major
        Found in src/app/legacy/psammead/psammead-locales/moment/ru.test.js and 2 other locations - About 7 hrs to fix
        src/app/legacy/psammead/psammead-locales/moment/ru.test.js on lines 160..184
        src/app/legacy/psammead/psammead-locales/moment/uk.test.js on lines 131..155

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

        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

        export const contentBlockWithNoHandlePrefixes = {
          content: {
            model: {
              blocks: [
                {
        src/app/components/Byline/utilities/getAuthorTwitterHandle/fixture/index.js on lines 152..214
        src/app/components/Byline/utilities/getAuthorTwitterHandle/fixture/index.js on lines 559..621

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

        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

        export const contentBlockWithMultipleHandlePrefixes = {
          content: {
            model: {
              blocks: [
                {
        src/app/components/Byline/utilities/getAuthorTwitterHandle/fixture/index.js on lines 152..214
        src/app/components/Byline/utilities/getAuthorTwitterHandle/fixture/index.js on lines 623..685

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

        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

          it('reports all relative timestamps >= 1 day and < 1 month rounded down to nearest day in DST', () => {
            moment.now = jest.fn().mockImplementation(() => {
              // July
              return 1657637911000;
            });
        src/app/legacy/psammead/psammead-timestamp-container/src/utilities/index.test.js on lines 205..221

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

        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

          it('reports all relative timestamps >= 1 day and < 1 month rounded down to nearest day out of DST', () => {
            moment.now = jest.fn().mockImplementation(() => {
              // Nov
              return 1668265111000;
            });
        src/app/legacy/psammead/psammead-timestamp-container/src/utilities/index.test.js on lines 187..203

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

        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

        File languages.page.tsx has 488 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        import Head from 'next/head';
        import * as React from 'react';
        import { GetServerSideProps } from 'next';
        import { STATIC_PAGE } from '#app/routes/utils/pageTypes';
        import ChartbeatAnalytics from '#app/components/ChartbeatAnalytics';
        Severity: Minor
        Found in ws-nextjs-app/pages/ws/languages.page.tsx - About 7 hrs to fix
          Severity
          Category
          Status
          Source
          Language