ICTU/quality-time

View on GitHub

Showing 684 of 684 total issues

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

SubjectTableBody.propTypes = {
    changed_fields: stringsPropType,
    dates: datesPropType,
    handleSort: func,
    measurements: measurementsPropType,
Severity: Major
Found in components/frontend/src/subject/SubjectTableBody.js and 2 other locations - About 1 hr to fix
components/frontend/src/header_footer/Menubar.js on lines 257..270
components/frontend/src/subject/SubjectTable.js on lines 66..79

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

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

SubjectTable.propTypes = {
    changed_fields: stringsPropType,
    dates: datesPropType,
    handleSort: func,
    measurements: measurementsPropType,
Severity: Major
Found in components/frontend/src/subject/SubjectTable.js and 2 other locations - About 1 hr to fix
components/frontend/src/header_footer/Menubar.js on lines 257..270
components/frontend/src/subject/SubjectTableBody.js on lines 57..70

Duplicated Code

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

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

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

Tuning

This issue has a mass of 72.

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

function ReactionTimes(props) {
    return (
        <>
            <Segment>
                <Label attached="top" size="large">
Severity: Minor
Found in components/frontend/src/report/ReportTitle.js - About 1 hr to fix

    Function groups has 45 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        const groups = Object.values(parameterLayout).map((parameterGroup) => {
            const parameterKeys = applicableParameters(allParameters, remainingParameters, parameterGroup, metric)
            if (parameterKeys.length === 0) {
                return null
            }
    Severity: Minor
    Found in components/frontend/src/source/SourceParameters.js - About 1 hr to fix

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

      export function PageContent({
          changed_fields,
          current_report,
          handleSort,
          lastUpdate,
      Severity: Major
      Found in components/frontend/src/PageContent.js and 1 other location - About 1 hr to fix
      components/frontend/src/PageContent.js on lines 116..131

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

      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

      PageContent.propTypes = {
          changed_fields: stringsPropType,
          current_report: reportPropType,
          handleSort: func,
          lastUpdate: datePropType,
      Severity: Major
      Found in components/frontend/src/PageContent.js and 1 other location - About 1 hr to fix
      components/frontend/src/PageContent.js on lines 36..51

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

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

      function issuePopupContent(issueStatus) {
          let popupContent = <TimeAgoWithDate date={issueStatus.created}>Created</TimeAgoWithDate>
          if (issueStatus.updated) {
              popupContent = (
                  <>
      Severity: Minor
      Found in components/frontend/src/issue/IssueStatus.js - About 1 hr to fix

        Function AppUI has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
        Open

        export function AppUI({
            changed_fields,
            dataModel,
            email,
            handleDateChange,
        Severity: Minor
        Found in components/frontend/src/AppUI.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

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

        it("does not show an error for required non-empty fields, when editable", () => {
            const { container } = render(<TextInput value="Hello" required />)
            expect(container.getElementsByTagName("textarea")[0]).toBeValid()
        })
        Severity: Major
        Found in components/frontend/src/fields/TextInput.test.js and 4 other locations - About 1 hr to fix
        components/frontend/src/fields/Input.test.js on lines 52..55
        components/frontend/src/fields/Input.test.js on lines 57..60
        components/frontend/src/fields/Input.test.js on lines 67..70
        components/frontend/src/fields/TextInput.test.js on lines 58..61

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

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

        it("renders in error state if the warning props is true", () => {
            const { container } = render(<Input value="" warning />)
            expect(container.getElementsByTagName("input")[0]).toBeInvalid()
        })
        Severity: Major
        Found in components/frontend/src/fields/Input.test.js and 4 other locations - About 1 hr to fix
        components/frontend/src/fields/Input.test.js on lines 52..55
        components/frontend/src/fields/Input.test.js on lines 57..60
        components/frontend/src/fields/TextInput.test.js on lines 58..61
        components/frontend/src/fields/TextInput.test.js on lines 63..66

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

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

        it("shows an error for required empty fields, when editable", () => {
            const { container } = render(<TextInput value="" required />)
            expect(container.getElementsByTagName("textarea")[0]).toBeInvalid()
        })
        Severity: Major
        Found in components/frontend/src/fields/TextInput.test.js and 4 other locations - About 1 hr to fix
        components/frontend/src/fields/Input.test.js on lines 52..55
        components/frontend/src/fields/Input.test.js on lines 57..60
        components/frontend/src/fields/Input.test.js on lines 67..70
        components/frontend/src/fields/TextInput.test.js on lines 63..66

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

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

        it("shows an error for required empty fields", () => {
            const { container } = render(<Input value="" required />)
            expect(container.getElementsByTagName("input")[0]).toBeInvalid()
        })
        Severity: Major
        Found in components/frontend/src/fields/Input.test.js and 4 other locations - About 1 hr to fix
        components/frontend/src/fields/Input.test.js on lines 57..60
        components/frontend/src/fields/Input.test.js on lines 67..70
        components/frontend/src/fields/TextInput.test.js on lines 58..61
        components/frontend/src/fields/TextInput.test.js on lines 63..66

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

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

        it("does not show an error for required non-empty fields", () => {
            const { container } = render(<Input value="Hello" required />)
            expect(container.getElementsByTagName("input")[0]).toBeValid()
        })
        Severity: Major
        Found in components/frontend/src/fields/Input.test.js and 4 other locations - About 1 hr to fix
        components/frontend/src/fields/Input.test.js on lines 52..55
        components/frontend/src/fields/Input.test.js on lines 67..70
        components/frontend/src/fields/TextInput.test.js on lines 58..61
        components/frontend/src/fields/TextInput.test.js on lines 63..66

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

        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 update date in the label if configured", async () => {
            history.push("?show_issue_update_date=true")
            const { queryByText } = renderIssueStatus({ updated: true })
            expect(queryByText(/2 days ago/)).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 167..171

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

        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 due date in the label if configured", async () => {
            history.push("?show_issue_due_date=true")
            const { queryByText } = renderIssueStatus({ due: true })
            expect(queryByText(/2 days from now/)).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 147..151

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

        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

                    <Parameters
                        metric={metric}
                        source={source}
                        source_uuid={source_uuid}
                        connection_error={connectionError}
        Severity: Major
        Found in components/frontend/src/source/Source.js and 1 other location - About 1 hr to fix
        components/frontend/src/source/SourceEntity.js on lines 58..68

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

        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

                <SourceEntityDetails
                    entity={entity}
                    metric_uuid={metric_uuid}
                    name={entity_name}
                    rationale={rationale}
        Severity: Major
        Found in components/frontend/src/source/SourceEntity.js and 1 other location - About 1 hr to fix
        components/frontend/src/source/Source.js on lines 176..186

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

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

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

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

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

        Refactorings

        Further Reading

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

        export function MetricsRequiringActionCard({ onClick, reports, selected }) {
            return (
                <FilterCardWithTable onClick={onClick} selected={selected} title="Action required">
                    {tableRows(reports)}
                </FilterCardWithTable>
        components/frontend/src/dashboard/IssuesCard.js on lines 49..55

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

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

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

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

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

        Refactorings

        Further Reading

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

        export function IssuesCard({ onClick, report, selected }) {
            return (
                <FilterCardWithTable onClick={onClick} selected={selected} title="Issues">
                    {tableRows(report)}
                </FilterCardWithTable>
        Severity: Major
        Found in components/frontend/src/dashboard/IssuesCard.js and 1 other location - About 1 hr to fix
        components/frontend/src/dashboard/MetricsRequiringActionCard.js on lines 60..66

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

        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

            expect(getMetricResponseOverrun("uuid", metric, {}, measurements, dataModel)).toStrictEqual({
                overruns: [
                    {
                        status: "target_not_met",
                        start: "2000-01-01",
        Severity: Major
        Found in components/frontend/src/utils.test.js and 2 other locations - About 1 hr to fix
        components/frontend/src/utils.test.js on lines 281..293
        components/frontend/src/utils.test.js on lines 367..379

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

        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