ICTU/quality-time

View on GitHub

Showing 684 of 684 total issues

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

it("does not show a warning message if showIf is false", () => {
    render(<WarningMessage header="Warning" showIf={false} />)
    expect(screen.queryAllByText("Warning").length).toBe(0)
})
Severity: Major
Found in components/frontend/src/widgets/WarningMessage.test.js and 1 other location - About 1 hr to fix
components/frontend/src/widgets/WarningMessage.test.js on lines 5..8

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

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

function sourceEntitiesHeaders(
    entityAttributes,
    hideIgnoredEntities,
    metricEntities,
    setHideIgnoredEntities,
Severity: Minor
Found in components/frontend/src/source/SourceEntities.js - About 1 hr to fix

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

    it("hides subjects if empty", async () => {
        history.push("?hidden_tags=tag,other")
        renderReport({ reportToRender: report })
        expect(screen.queryAllByText(/Subject title/).length).toBe(0)
    })
    Severity: Major
    Found in components/frontend/src/report/Report.test.js and 1 other location - About 1 hr to fix
    components/frontend/src/report/ReportDashboard.test.js on lines 126..130

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

    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

    it("shows the number of metrics per status when the total is zero", () => {
        renderBarChart(0, 0)
        expect(screen.queryAllByLabelText(`Status on ${dateString}: no metrics`, { exact: false }).length).toBe(1)
    })
    Severity: Major
    Found in components/frontend/src/dashboard/StatusBarChart.test.js and 2 other locations - About 1 hr to fix
    components/frontend/src/dashboard/StatusBarChart.test.js on lines 20..23
    components/frontend/src/dashboard/StatusBarChart.test.js on lines 25..32

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

    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

    it("shows the number of metrics per status", () => {
        renderBarChart(2, 2)
        expect(
            screen.queryAllByLabelText(`Status on ${dateString}: 2 metrics, 2 target not met`, {
                exact: false,
    Severity: Major
    Found in components/frontend/src/dashboard/StatusBarChart.test.js and 2 other locations - About 1 hr to fix
    components/frontend/src/dashboard/StatusBarChart.test.js on lines 15..18
    components/frontend/src/dashboard/StatusBarChart.test.js on lines 20..23

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

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

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

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

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

    Refactorings

    Further Reading

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

    it("renders a checkmark if the status is target met", () => {
        const { getAllByLabelText } = render(<StatusIcon status="target_met" />)
        expect(getAllByLabelText(/Target met/).length).toBe(1)
    })
    Severity: Major
    Found in components/frontend/src/measurement/StatusIcon.test.js and 1 other location - About 1 hr to fix
    components/frontend/src/measurement/StatusIcon.test.js on lines 11..14

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

    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

                    <Grid.Column>
                        <Target
                            label="Metric near target"
                            labelPosition="top right"
                            target_type="near_target"
    components/frontend/src/metric/MetricConfigurationParameters.js on lines 228..237

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

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

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

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

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

    Refactorings

    Further Reading

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

    it("renders an info icon if the status is informative", () => {
        const { getAllByLabelText } = render(<StatusIcon status="informative" />)
        expect(getAllByLabelText(/Informative/).length).toBe(1)
    })
    Severity: Major
    Found in components/frontend/src/measurement/StatusIcon.test.js and 1 other location - About 1 hr to fix
    components/frontend/src/measurement/StatusIcon.test.js on lines 6..9

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

    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

                    <Grid.Column>
                        <Target
                            label="Metric target"
                            labelPosition="top center"
                            target_type="target"
    components/frontend/src/metric/MetricConfigurationParameters.js on lines 238..247

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

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

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

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

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

    Refactorings

    Further Reading

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

    it("hides the legend card", async () => {
        history.push("?hidden_cards=legend")
        renderDashboard({ reportToRender: report })
        expect(screen.queryAllByText(/Legend/).length).toBe(0)
    })
    Severity: Major
    Found in components/frontend/src/report/ReportDashboard.test.js and 1 other location - About 1 hr to fix
    components/frontend/src/report/Report.test.js on lines 154..158

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

    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

    it("shows the number of metrics per status when the total is not zero", () => {
        renderBarChart(10, 0)
        expect(screen.queryAllByLabelText(`Status on ${dateString}: no metrics`, { exact: false }).length).toBe(1)
    })
    Severity: Major
    Found in components/frontend/src/dashboard/StatusBarChart.test.js and 2 other locations - About 1 hr to fix
    components/frontend/src/dashboard/StatusBarChart.test.js on lines 15..18
    components/frontend/src/dashboard/StatusBarChart.test.js on lines 25..32

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

    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 renderIssueStatus has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
    Open

    function renderIssueStatus({
        connectionError = false,
        created = true,
        due = false,
        issueTrackerMissing = false,
    Severity: Minor
    Found in components/frontend/src/issue/IssueStatus.test.js - About 1 hr 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

    Function popupText has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
    Open

    function popupText(metric, debtEndDateInThePast, allIssuesDone, dataModel) {
        const unit = formatMetricScaleAndUnit(metric, dataModel)
        const metricDirection = formatMetricDirection(metric, dataModel)
        let debtEndDateText = ""
        let endDate
    Severity: Minor
    Found in components/frontend/src/measurement/MeasurementTarget.js - About 1 hr 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

    Function get_notifications has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
    Open

        def get_notifications(
            self,
            reports: list[Report],
            measurements: list[Measurement],
            most_recent_measurement_seen: datetime,
    Severity: Minor
    Found in components/notifier/src/strategies/notification_strategy.py - About 1 hr 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

    Function Input has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export function Input(props) {
        let { editableLabel, label, error, prefix, required, set_value, warning, ...otherProps } = props
        const initialValue = props.value || ""
        const [value, setValue] = useState(initialValue)
    
    
    Severity: Minor
    Found in components/frontend/src/fields/Input.js - About 1 hr to fix

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

      it("sets the issue tracker username", async () => {
          renderIssueTracker()
          await userEvent.type(screen.getByText(/Username/), "janedoe{Enter}")
          expect(report_api.set_report_issue_tracker_attribute).toHaveBeenLastCalledWith(
              "report_uuid",
      Severity: Major
      Found in components/frontend/src/report/IssueTracker.test.js and 3 other locations - About 1 hr to fix
      components/frontend/src/report/IssueTracker.test.js on lines 57..66
      components/frontend/src/report/IssueTracker.test.js on lines 79..88
      components/frontend/src/report/IssueTracker.test.js on lines 90..99

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

      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

      it("sets the issue tracker private token", async () => {
          renderIssueTracker()
          await userEvent.type(screen.getByText(/Private token/), "secret{Enter}")
          expect(report_api.set_report_issue_tracker_attribute).toHaveBeenLastCalledWith(
              "report_uuid",
      Severity: Major
      Found in components/frontend/src/report/IssueTracker.test.js and 3 other locations - About 1 hr to fix
      components/frontend/src/report/IssueTracker.test.js on lines 57..66
      components/frontend/src/report/IssueTracker.test.js on lines 68..77
      components/frontend/src/report/IssueTracker.test.js on lines 79..88

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

      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

      it("sets the issue tracker url", async () => {
          renderIssueTracker()
          await userEvent.type(screen.getByText(/URL/), "https://jira{Enter}")
          expect(report_api.set_report_issue_tracker_attribute).toHaveBeenLastCalledWith(
              "report_uuid",
      Severity: Major
      Found in components/frontend/src/report/IssueTracker.test.js and 3 other locations - About 1 hr to fix
      components/frontend/src/report/IssueTracker.test.js on lines 68..77
      components/frontend/src/report/IssueTracker.test.js on lines 79..88
      components/frontend/src/report/IssueTracker.test.js on lines 90..99

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

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

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

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

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

      Refactorings

      Further Reading

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

      export function Menubar({
          email,
          handleDateChange,
          onDate,
          openReportsOverview,
      Severity: Major
      Found in components/frontend/src/header_footer/Menubar.js and 2 other locations - About 1 hr to fix
      components/frontend/src/subject/SubjectTable.js on lines 19..65
      components/frontend/src/subject/SubjectTableBody.js on lines 15..56

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

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

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

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

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

      Refactorings

      Further Reading

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

      it("displays the issue summary in the label if configured", async () => {
          history.push("?show_issue_summary=true")
          const { queryByText } = renderIssueStatus()
          expect(queryByText(/summary/)).not.toBe(null)
      })
      Severity: Major
      Found in components/frontend/src/issue/IssueStatus.test.js and 1 other location - About 1 hr to fix
      components/frontend/src/issue/IssueStatus.test.js on lines 119..123

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

      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