AugurProject/augur-ui

View on GitHub

Showing 1,757 of 1,757 total issues

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

    test(`should call callback and history with good data and is invalid`, () => {
      store.dispatch(
        submitInitialReport({
          estimateGas: false,
          marketId: "testMarketId",
Severity: Major
Found in src/modules/reports/actions/submit-initial-report.test.js and 2 other locations - About 3 hrs to fix
src/modules/reports/actions/submit-initial-report.test.js on lines 40..54
src/modules/reports/actions/submit-initial-report.test.js on lines 147..161

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

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(`should call both callback and history with good data not invalid`, () => {
      store.dispatch(
        submitInitialReport({
          estimateGas: false,
          marketId: "testMarketId",
Severity: Major
Found in src/modules/reports/actions/submit-initial-report.test.js and 2 other locations - About 3 hrs to fix
src/modules/reports/actions/submit-initial-report.test.js on lines 40..54
src/modules/reports/actions/submit-initial-report.test.js on lines 163..177

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

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 trading--confirm.jsx has 308 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import React from "react";
import PropTypes from "prop-types";

import ValueDenomination from "modules/common/components/value-denomination/value-denomination";
import classNames from "classnames";
Severity: Minor
Found in src/modules/trading/components/trading--confirm/trading--confirm.jsx - About 3 hrs to fix

    File init-augur.js has 307 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    import * as AugurJS from "services/augurjs";
    import { updateEnv } from "modules/app/actions/update-env";
    import {
      updateConnectionStatus,
      updateAugurNodeConnectionStatus,
    Severity: Minor
    Found in src/modules/app/actions/init-augur.js - About 3 hrs to fix

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

        constructor(props) {
          super(props);
      
          this.state = {
            showEnvForm: false
      Severity: Major
      Found in src/modules/modal/components/modal-network-disconnected.jsx and 3 other locations - About 3 hrs to fix
      src/modules/auth/components/connect-account/connect-account.jsx on lines 25..35
      src/modules/block-info/components/block-info-data/block-info-data.jsx on lines 25..35
      src/modules/market-charts/components/market-outcome-charts--candlestick-period-selector/market-outcome-charts--candlestick-period-selector.jsx on lines 20..30

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

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

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

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

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

      Refactorings

      Further Reading

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

                  <div className={Styles.CreateMarketReview__resolution}>
                    <h4 className={Styles.CreateMarketReview__smallheading}>
                      Resolution Source
                    </h4>
                    <p className={Styles.CreateMarketReview__smallparagraph}>
      src/modules/create-market/components/create-market-form-review/create-market-form-review.jsx on lines 275..284

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

      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

        static propTypes = {
          newMarket: PropTypes.object.isRequired,
          universe: PropTypes.object.isRequired,
          gasPrice: PropTypes.number.isRequired,
          estimateSubmitNewMarket: PropTypes.func.isRequired,
      src/modules/market/components/market-view/market-view.jsx on lines 20..29

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

      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

        constructor(props) {
          super(props);
      
          this.state = {
            dropdownOpen: false
      src/modules/auth/components/connect-account/connect-account.jsx on lines 25..35
      src/modules/market-charts/components/market-outcome-charts--candlestick-period-selector/market-outcome-charts--candlestick-period-selector.jsx on lines 20..30
      src/modules/modal/components/modal-network-disconnected.jsx on lines 20..30

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

      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

        constructor(props) {
          super(props);
      
          this.state = {
            dropdownOpen: false
      src/modules/block-info/components/block-info-data/block-info-data.jsx on lines 25..35
      src/modules/market-charts/components/market-outcome-charts--candlestick-period-selector/market-outcome-charts--candlestick-period-selector.jsx on lines 20..30
      src/modules/modal/components/modal-network-disconnected.jsx on lines 20..30

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

      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 areaBid = d3
          .area()
          .curve(d3.curveStepBefore)
          .x0(d => drawParams.xScale(d[1]))
          .x1(d => drawParams.xScale(drawParams.xDomain[0]))
      src/modules/market-charts/components/market-outcome-charts--depth/market-outcome-charts--depth.jsx on lines 634..639

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

      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

        static propTypes = {
          marketId: PropTypes.string.isRequired,
          isConnected: PropTypes.bool.isRequired,
          loadFullMarket: PropTypes.func.isRequired,
          description: PropTypes.string.isRequired,
      Severity: Major
      Found in src/modules/market/components/market-view/market-view.jsx and 1 other location - About 3 hrs to fix
      src/modules/create-market/components/create-market-form-review/create-market-form-review.jsx on lines 37..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 102.

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

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

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

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

      Refactorings

      Further Reading

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

                  <div className={Styles.CreateMarketReview__designated_report}>
                    <h4 className={Styles.CreateMarketReview__smallheading}>
                      Designated Reporter
                    </h4>
                    <p className={Styles.CreateMarketReview__smallparagraph}>
      src/modules/create-market/components/create-market-form-review/create-market-form-review.jsx on lines 262..273

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

      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

        constructor(props) {
          super(props);
      
          this.state = {
            isModalActive: false
      src/modules/auth/components/connect-account/connect-account.jsx on lines 25..35
      src/modules/block-info/components/block-info-data/block-info-data.jsx on lines 25..35
      src/modules/modal/components/modal-network-disconnected.jsx on lines 20..30

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

      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 areaAsk = d3
          .area()
          .curve(d3.curveStepBefore)
          .x0(d => drawParams.xScale(d[1]))
          .x1(d => drawParams.xScale(drawParams.xDomain[1]))
      src/modules/market-charts/components/market-outcome-charts--depth/market-outcome-charts--depth.jsx on lines 627..632

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

      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 account-withdraw.jsx has 306 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /* eslint jsx-a11y/label-has-for: 0 */
      
      import React, { Component } from "react";
      import PropTypes from "prop-types";
      
      
      Severity: Minor
      Found in src/modules/account/components/account-withdraw/account-withdraw.jsx - About 3 hrs to fix

        Function selectMarketsInDisputeSelector has 83 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            (markets, disputeOutcomes, universe) => {
              if (isEmpty(markets)) {
                return [];
              }
              let filteredMarkets = markets.filter(
        Severity: Major
        Found in src/modules/reports/selectors/select-dispute-markets.js - About 3 hrs to fix

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

              const actual = accountTrades(
                {
                  "0xMARKETID2": {
                    2: [
                      {
          Severity: Major
          Found in src/modules/positions/reducers/account-trades.test.js and 1 other location - About 3 hrs to fix
          src/modules/positions/reducers/account-trades.test.js on lines 61..97

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

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

            test(`get remaining rep`, () => {
              const outcome = {
                bondSizeCurrent: 12588500976562500000,
                completedStake: "0",
                stakeCurrent: "1699361165364583300",
          src/modules/reports/selectors/fill-dispute-outcome-progress.test.js on lines 60..75
          src/modules/reports/selectors/fill-dispute-outcome-progress.test.js on lines 77..92
          src/modules/reports/selectors/fill-dispute-outcome-progress.test.js on lines 94..109
          src/modules/reports/selectors/fill-dispute-outcome-progress.test.js on lines 128..143
          src/modules/reports/selectors/fill-dispute-outcome-progress.test.js on lines 145..160
          src/modules/reports/selectors/fill-dispute-outcome-progress.test.js on lines 162..177

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

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

            test(`big numbers account % complete, rounding up`, () => {
              const outcome = {
                bondSizeCurrent: 6294250488281250000,
                stakeCurrent: "349680582682291650",
                completedStake: "0",
          src/modules/reports/selectors/fill-dispute-outcome-progress.test.js on lines 11..26
          src/modules/reports/selectors/fill-dispute-outcome-progress.test.js on lines 77..92
          src/modules/reports/selectors/fill-dispute-outcome-progress.test.js on lines 94..109
          src/modules/reports/selectors/fill-dispute-outcome-progress.test.js on lines 128..143
          src/modules/reports/selectors/fill-dispute-outcome-progress.test.js on lines 145..160
          src/modules/reports/selectors/fill-dispute-outcome-progress.test.js on lines 162..177

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

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

            test(`% complete, 75 `, () => {
              const outcome = {
                bondSizeCurrent: 10,
                stakeCurrent: "7.5",
                completedStake: "0",
          src/modules/reports/selectors/fill-dispute-outcome-progress.test.js on lines 11..26
          src/modules/reports/selectors/fill-dispute-outcome-progress.test.js on lines 60..75
          src/modules/reports/selectors/fill-dispute-outcome-progress.test.js on lines 77..92
          src/modules/reports/selectors/fill-dispute-outcome-progress.test.js on lines 94..109
          src/modules/reports/selectors/fill-dispute-outcome-progress.test.js on lines 145..160
          src/modules/reports/selectors/fill-dispute-outcome-progress.test.js on lines 162..177

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

          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