AugurProject/augur-ui

View on GitHub

Showing 1,757 of 1,757 total issues

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

    <g
      id="Trading"
      fill="none"
      fillRule="evenodd"
      strokeLinecap="round"
Severity: Major
Found in src/modules/common/components/icons.jsx and 1 other location - About 2 hrs to fix
src/modules/common/components/icons.jsx on lines 1127..1142

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

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

  render() {
    const { order } = this.props;
    const s = this.state;

    const confirmStyle = {

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

      constructor(props) {
        super(props);
    
        this.state = {
          errorShown: false
    Severity: Major
    Found in src/modules/auth/components/common/error-container.jsx and 1 other location - About 2 hrs to fix
    src/modules/reporting/components/reporting-header/reporting-header.jsx on lines 40..49

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

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

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

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

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

    Refactorings

    Further Reading

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

        <g
          id="Symbols"
          fill="none"
          fillRule="evenodd"
          strokeLinecap="round"
    Severity: Major
    Found in src/modules/common/components/icons.jsx and 1 other location - About 2 hrs to fix
    src/modules/common/components/icons.jsx on lines 59..73

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

    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

        candleChart
          .selectAll("line.stem")
          .data(priceTimeSeries)
          .enter()
          .append("line")
    src/modules/market-charts/components/market-outcome-charts--candlestick/market-outcome-charts--candlestick.jsx on lines 687..694

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

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

      it("report on 0", async () => {
        await expect(page).toFill("#sr__input--outcome-scalar", "0");
        await expect(page).toClick("button", {
          text: "Review"
        });
    Severity: Major
    Found in integration/reporting/reporting.test.ts and 8 other locations - About 2 hrs to fix
    integration/reporting/reporting.test.ts on lines 423..432
    integration/reporting/reporting.test.ts on lines 434..443
    integration/reporting/reporting.test.ts on lines 445..454
    integration/reporting/reporting.test.ts on lines 501..510
    integration/reporting/reporting.test.ts on lines 512..521
    integration/reporting/reporting.test.ts on lines 523..532
    integration/reporting/reporting.test.ts on lines 534..543
    integration/reporting/reporting.test.ts on lines 545..554

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

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

      it("report on 5.01", async () => {
        await expect(page).toFill("#sr__input--outcome-scalar", "5.01");
        await expect(page).toClick("button", {
          text: "Review"
        });
    Severity: Major
    Found in integration/reporting/reporting.test.ts and 8 other locations - About 2 hrs to fix
    integration/reporting/reporting.test.ts on lines 412..421
    integration/reporting/reporting.test.ts on lines 423..432
    integration/reporting/reporting.test.ts on lines 445..454
    integration/reporting/reporting.test.ts on lines 501..510
    integration/reporting/reporting.test.ts on lines 512..521
    integration/reporting/reporting.test.ts on lines 523..532
    integration/reporting/reporting.test.ts on lines 534..543
    integration/reporting/reporting.test.ts on lines 545..554

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

    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

      constructor(props) {
        super(props);
    
        this.state = {
          readMore: false
    src/modules/auth/components/common/error-container.jsx on lines 24..33

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

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

      it("report on 10", async () => {
        await expect(page).toFill("#sr__input--outcome-scalar", "10");
        await expect(page).toClick("button", {
          text: "Review"
        });
    Severity: Major
    Found in integration/reporting/reporting.test.ts and 8 other locations - About 2 hrs to fix
    integration/reporting/reporting.test.ts on lines 412..421
    integration/reporting/reporting.test.ts on lines 423..432
    integration/reporting/reporting.test.ts on lines 434..443
    integration/reporting/reporting.test.ts on lines 445..454
    integration/reporting/reporting.test.ts on lines 512..521
    integration/reporting/reporting.test.ts on lines 523..532
    integration/reporting/reporting.test.ts on lines 534..543
    integration/reporting/reporting.test.ts on lines 545..554

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

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

      it("report on 5.01", async () => {
        await expect(page).toFill("#sr__input--outcome-scalar", "5.01");
        await expect(page).toClick("button", {
          text: "Review"
        });
    Severity: Major
    Found in integration/reporting/reporting.test.ts and 8 other locations - About 2 hrs to fix
    integration/reporting/reporting.test.ts on lines 412..421
    integration/reporting/reporting.test.ts on lines 423..432
    integration/reporting/reporting.test.ts on lines 434..443
    integration/reporting/reporting.test.ts on lines 445..454
    integration/reporting/reporting.test.ts on lines 501..510
    integration/reporting/reporting.test.ts on lines 512..521
    integration/reporting/reporting.test.ts on lines 523..532
    integration/reporting/reporting.test.ts on lines 545..554

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

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

      it("report on -5.01", async () => {
        await expect(page).toFill("#sr__input--outcome-scalar", "-5.01");
        await expect(page).toClick("button", {
          text: "Review"
        });
    Severity: Major
    Found in integration/reporting/reporting.test.ts and 8 other locations - About 2 hrs to fix
    integration/reporting/reporting.test.ts on lines 412..421
    integration/reporting/reporting.test.ts on lines 423..432
    integration/reporting/reporting.test.ts on lines 434..443
    integration/reporting/reporting.test.ts on lines 445..454
    integration/reporting/reporting.test.ts on lines 501..510
    integration/reporting/reporting.test.ts on lines 512..521
    integration/reporting/reporting.test.ts on lines 523..532
    integration/reporting/reporting.test.ts on lines 534..543

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

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

      it("report on -10", async () => {
        await expect(page).toFill("#sr__input--outcome-scalar", "-10");
        await expect(page).toClick("button", {
          text: "Review"
        });
    Severity: Major
    Found in integration/reporting/reporting.test.ts and 8 other locations - About 2 hrs to fix
    integration/reporting/reporting.test.ts on lines 412..421
    integration/reporting/reporting.test.ts on lines 423..432
    integration/reporting/reporting.test.ts on lines 434..443
    integration/reporting/reporting.test.ts on lines 445..454
    integration/reporting/reporting.test.ts on lines 501..510
    integration/reporting/reporting.test.ts on lines 512..521
    integration/reporting/reporting.test.ts on lines 534..543
    integration/reporting/reporting.test.ts on lines 545..554

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

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

      it("report on -10", async () => {
        await expect(page).toFill("#sr__input--outcome-scalar", "-10");
        await expect(page).toClick("button", {
          text: "Review"
        });
    Severity: Major
    Found in integration/reporting/reporting.test.ts and 8 other locations - About 2 hrs to fix
    integration/reporting/reporting.test.ts on lines 412..421
    integration/reporting/reporting.test.ts on lines 434..443
    integration/reporting/reporting.test.ts on lines 445..454
    integration/reporting/reporting.test.ts on lines 501..510
    integration/reporting/reporting.test.ts on lines 512..521
    integration/reporting/reporting.test.ts on lines 523..532
    integration/reporting/reporting.test.ts on lines 534..543
    integration/reporting/reporting.test.ts on lines 545..554

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

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

      it("report on 0", async () => {
        await expect(page).toFill("#sr__input--outcome-scalar", "0");
        await expect(page).toClick("button", {
          text: "Review"
        });
    Severity: Major
    Found in integration/reporting/reporting.test.ts and 8 other locations - About 2 hrs to fix
    integration/reporting/reporting.test.ts on lines 412..421
    integration/reporting/reporting.test.ts on lines 423..432
    integration/reporting/reporting.test.ts on lines 434..443
    integration/reporting/reporting.test.ts on lines 445..454
    integration/reporting/reporting.test.ts on lines 501..510
    integration/reporting/reporting.test.ts on lines 523..532
    integration/reporting/reporting.test.ts on lines 534..543
    integration/reporting/reporting.test.ts on lines 545..554

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

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

      it("report on -5.01", async () => {
        await expect(page).toFill("#sr__input--outcome-scalar", "-5.01");
        await expect(page).toClick("button", {
          text: "Review"
        });
    Severity: Major
    Found in integration/reporting/reporting.test.ts and 8 other locations - About 2 hrs to fix
    integration/reporting/reporting.test.ts on lines 412..421
    integration/reporting/reporting.test.ts on lines 423..432
    integration/reporting/reporting.test.ts on lines 434..443
    integration/reporting/reporting.test.ts on lines 501..510
    integration/reporting/reporting.test.ts on lines 512..521
    integration/reporting/reporting.test.ts on lines 523..532
    integration/reporting/reporting.test.ts on lines 534..543
    integration/reporting/reporting.test.ts on lines 545..554

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

    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 user-open-orders.test.js has 258 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    import { formatEther, formatShares, formatNone } from "utils/format-number";
    import { CLOSE_DIALOG_CLOSING } from "modules/markets/constants/close-dialog-status";
    import store from "src/store";
    
    jest.mock("src/store");
    Severity: Minor
    Found in src/modules/orders/selectors/user-open-orders.test.js - About 2 hrs to fix

      Function localStorageMiddleware has 54 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      const localStorageMiddleware = store => next => action => {
        next(action);
        const state = store.getState();
        if (!state || !state.loginAccount || !state.loginAccount.address) {
          return;
      Severity: Major
      Found in src/store.js - About 2 hrs to fix

        Function generateMarketsPositionsSummary has 54 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          markets => {
            if (!markets || !markets.length) {
              return null;
            }
            let position = ZERO;
        Severity: Major
        Found in src/modules/positions/selectors/positions-summary.js - About 2 hrs to fix

          Function render has 54 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            render() {
              const { pendingOrders, position } = this.props;
              const orderText = pendingOrders.length > 1 ? "Orders" : "Order";
          
              return (

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

              showMore() {
                const outcomeWrapperHeight = this.state.isOpen
                  ? 0
                  : `${this.outcomeTable.clientHeight}px`;
            
            
            src/modules/create-market/components/create-market-preview-categorical/create-market-preview-categorical.jsx on lines 29..38

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

            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