GladysProject/Gladys

View on GitHub
front/src/components/boxs/chart/Chart.jsx

Summary

Maintainability
F
5 days
Test Coverage

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

  render(
    props,
    {
      initialized,
      loading,
Severity: Major
Found in front/src/components/boxs/chart/Chart.jsx - About 1 day to fix

    File Chart.jsx has 462 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    import { Component } from 'preact';
    import { connect } from 'unistore/preact';
    import cx from 'classnames';
    
    import { Text } from 'preact-i18n';
    Severity: Minor
    Found in front/src/components/boxs/chart/Chart.jsx - About 7 hrs to fix

      Avoid too many return statements within this function.
      Open

        return Math.round(((lastValue - firstValue) / Math.abs(firstValue)) * 100);
      Severity: Major
      Found in front/src/components/boxs/chart/Chart.jsx - About 30 mins to fix

        Function calculateVariation has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
        Open

        const calculateVariation = (firstValue, lastValue) => {
          if (!notNullNotUndefined(firstValue) || !notNullNotUndefined(lastValue)) {
            return null;
          }
          if (firstValue === 0 && lastValue === 0) {
        Severity: Minor
        Found in front/src/components/boxs/chart/Chart.jsx - About 25 mins to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

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

                            {variation > 0 && (
                              <svg
                                xmlns="http://www.w3.org/2000/svg"
                                class={cx(style.variationIcon)}
                                width="24"
        Severity: Major
        Found in front/src/components/boxs/chart/Chart.jsx and 1 other location - About 4 hrs to fix
        front/src/components/boxs/chart/Chart.jsx on lines 412..429

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

        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

                            {variation < 0 && (
                              <svg
                                xmlns="http://www.w3.org/2000/svg"
                                class={cx(style.variationIcon)}
                                width="24"
        Severity: Major
        Found in front/src/components/boxs/chart/Chart.jsx and 1 other location - About 4 hrs to fix
        front/src/components/boxs/chart/Chart.jsx on lines 377..394

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

        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

                      <ApexChartComponent
                        series={series}
                        interval={interval}
                        user={props.user}
                        size="big"
        Severity: Major
        Found in front/src/components/boxs/chart/Chart.jsx and 1 other location - About 2 hrs to fix
        front/src/components/boxs/chart/Chart.jsx on lines 474..482

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

        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

                      <ApexChartComponent
                        series={series}
                        interval={interval}
                        user={props.user}
                        size="big"
        Severity: Major
        Found in front/src/components/boxs/chart/Chart.jsx and 1 other location - About 2 hrs to fix
        front/src/components/boxs/chart/Chart.jsx on lines 437..445

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

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

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

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

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

        Refactorings

        Further Reading

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

                          <a
                            class={cx(style.dropdownItemChart, {
                              [style.active]: interval === SEVEN_DAYS_IN_MINUTES
                            })}
                            onClick={this.switchTo7DaysView}
        Severity: Major
        Found in front/src/components/boxs/chart/Chart.jsx and 5 other locations - About 1 hr to fix
        front/src/components/boxs/chart/Chart.jsx on lines 303..310
        front/src/components/boxs/chart/Chart.jsx on lines 311..318
        front/src/components/boxs/chart/Chart.jsx on lines 327..334
        front/src/components/boxs/chart/Chart.jsx on lines 335..342
        front/src/components/boxs/chart/Chart.jsx on lines 343..350

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

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

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

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

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

        Refactorings

        Further Reading

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

                          <a
                            class={cx(style.dropdownItemChart, {
                              [style.active]: interval === THIRTY_DAYS_IN_MINUTES
                            })}
                            onClick={this.switchTo30DaysView}
        Severity: Major
        Found in front/src/components/boxs/chart/Chart.jsx and 5 other locations - About 1 hr to fix
        front/src/components/boxs/chart/Chart.jsx on lines 303..310
        front/src/components/boxs/chart/Chart.jsx on lines 311..318
        front/src/components/boxs/chart/Chart.jsx on lines 319..326
        front/src/components/boxs/chart/Chart.jsx on lines 335..342
        front/src/components/boxs/chart/Chart.jsx on lines 343..350

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

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

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

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

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

        Refactorings

        Further Reading

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

                          <a
                            class={cx(style.dropdownItemChart, {
                              [style.active]: interval === ONE_DAY_IN_MINUTES
                            })}
                            onClick={this.switchToOneDayView}
        Severity: Major
        Found in front/src/components/boxs/chart/Chart.jsx and 5 other locations - About 1 hr to fix
        front/src/components/boxs/chart/Chart.jsx on lines 303..310
        front/src/components/boxs/chart/Chart.jsx on lines 319..326
        front/src/components/boxs/chart/Chart.jsx on lines 327..334
        front/src/components/boxs/chart/Chart.jsx on lines 335..342
        front/src/components/boxs/chart/Chart.jsx on lines 343..350

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

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

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

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

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

        Refactorings

        Further Reading

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

                          <a
                            class={cx(style.dropdownItemChart, {
                              [style.active]: interval === ONE_HOUR_IN_MINUTES
                            })}
                            onClick={this.switchToLastHourView}
        Severity: Major
        Found in front/src/components/boxs/chart/Chart.jsx and 5 other locations - About 1 hr to fix
        front/src/components/boxs/chart/Chart.jsx on lines 311..318
        front/src/components/boxs/chart/Chart.jsx on lines 319..326
        front/src/components/boxs/chart/Chart.jsx on lines 327..334
        front/src/components/boxs/chart/Chart.jsx on lines 335..342
        front/src/components/boxs/chart/Chart.jsx on lines 343..350

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

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

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

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

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

        Refactorings

        Further Reading

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

                          <a
                            class={cx(style.dropdownItemChart, {
                              [style.active]: interval === THREE_MONTHS_IN_MINUTES
                            })}
                            onClick={this.switchTo3monthsView}
        Severity: Major
        Found in front/src/components/boxs/chart/Chart.jsx and 5 other locations - About 1 hr to fix
        front/src/components/boxs/chart/Chart.jsx on lines 303..310
        front/src/components/boxs/chart/Chart.jsx on lines 311..318
        front/src/components/boxs/chart/Chart.jsx on lines 319..326
        front/src/components/boxs/chart/Chart.jsx on lines 327..334
        front/src/components/boxs/chart/Chart.jsx on lines 343..350

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

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

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

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

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

        Refactorings

        Further Reading

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

                          <a
                            class={cx(style.dropdownItemChart, {
                              [style.active]: interval === ONE_YEAR_IN_MINUTES
                            })}
                            onClick={this.switchToYearlyView}
        Severity: Major
        Found in front/src/components/boxs/chart/Chart.jsx and 5 other locations - About 1 hr to fix
        front/src/components/boxs/chart/Chart.jsx on lines 303..310
        front/src/components/boxs/chart/Chart.jsx on lines 311..318
        front/src/components/boxs/chart/Chart.jsx on lines 319..326
        front/src/components/boxs/chart/Chart.jsx on lines 327..334
        front/src/components/boxs/chart/Chart.jsx on lines 335..342

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

        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

          switchToLastHourView = async e => {
            e.preventDefault();
            await this.setState({
              interval: ONE_HOUR_IN_MINUTES,
              dropdown: false
        Severity: Major
        Found in front/src/components/boxs/chart/Chart.jsx and 2 other locations - About 1 hr to fix
        front/src/components/boxs/chart/Chart.jsx on lines 79..86
        front/src/components/boxs/chart/Chart.jsx on lines 87..94

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 55.

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

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

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

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

        Refactorings

        Further Reading

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

          switchToOneDayView = async e => {
            e.preventDefault();
            await this.setState({
              interval: ONE_DAY_IN_MINUTES,
              dropdown: false
        Severity: Major
        Found in front/src/components/boxs/chart/Chart.jsx and 2 other locations - About 1 hr to fix
        front/src/components/boxs/chart/Chart.jsx on lines 71..78
        front/src/components/boxs/chart/Chart.jsx on lines 87..94

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 55.

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

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

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

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

        Refactorings

        Further Reading

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

          switchTo7DaysView = async e => {
            e.preventDefault();
            await this.setState({
              interval: SEVEN_DAYS_IN_MINUTES,
              dropdown: false
        Severity: Major
        Found in front/src/components/boxs/chart/Chart.jsx and 2 other locations - About 1 hr to fix
        front/src/components/boxs/chart/Chart.jsx on lines 71..78
        front/src/components/boxs/chart/Chart.jsx on lines 79..86

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 55.

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

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

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

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

        Refactorings

        Further Reading

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

          componentDidMount() {
            this.getData();
            this.props.session.dispatcher.addListener(
              WEBSOCKET_MESSAGE_TYPES.DEVICE.NEW_STATE,
              this.updateDeviceStateWebsocket
        Severity: Major
        Found in front/src/components/boxs/chart/Chart.jsx and 5 other locations - About 55 mins to fix
        front/src/components/boxs/music/MusicBox.jsx on lines 89..95
        front/src/components/boxs/room-humidity/RoomHumidity.jsx on lines 63..66
        front/src/components/boxs/room-temperature/RoomTemperature.jsx on lines 70..73
        front/src/routes/integration/all/zwavejs-ui/discover-page/DiscoverTab.jsx on lines 46..52
        front/src/routes/locked/index.js on lines 146..149

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

        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

          render(
            props,
            {
              initialized,
              loading,
        Severity: Minor
        Found in front/src/components/boxs/chart/Chart.jsx and 1 other location - About 55 mins to fix
        front/src/routes/map/NewArea.jsx on lines 227..260

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

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

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

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

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

        Refactorings

        Further Reading

        There are no issues that match your filters.

        Category
        Status