netdata/netdata

View on GitHub
src/collectors/python.d.plugin/riakkv/riakkv.chart.py

Summary

Maintainability
F
3 days
Test Coverage

File riakkv.chart.py has 279 lines of code (exceeds 250 allowed). Consider refactoring.
Open

# -*- coding: utf-8 -*-
# Description: riak netdata python.d module
#
# See also:
# https://docs.riak.com/riak/kv/latest/using/reference/statistics-monitoring/index.html
Severity: Minor
Found in src/collectors/python.d.plugin/riakkv/riakkv.chart.py - About 2 hrs to fix

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

        "search.latency.index": {
            "options": [None, "Time it takes Search to index a new document", "ms", "latency", "riak.search.latency.index",
                        "line"],
            "lines": [
                ["search_index_latency_median", "median", "absolute", 1, 1000],
    Severity: Major
    Found in src/collectors/python.d.plugin/riakkv/riakkv.chart.py and 2 other locations - About 2 hrs to fix
    src/collectors/python.d.plugin/boinc/boinc.chart.py on lines 47..55
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 163..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 57.

    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

        "search.latency.query": {
            "options": [None, "Search query latency", "ms", "latency", "riak.search.latency.query", "line"],
            "lines": [
                ["search_query_latency_median", "median", "absolute", 1, 1000],
                ["search_query_latency_min", "min", "absolute", 1, 1000],
    Severity: Major
    Found in src/collectors/python.d.plugin/riakkv/riakkv.chart.py and 2 other locations - About 2 hrs to fix
    src/collectors/python.d.plugin/boinc/boinc.chart.py on lines 47..55
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 174..183

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

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

        "consistent.latency.get": {
            "options": [None, "Strongly consistent read latency", "ms", "latency", "riak.consistent.latency.get", "line"],
            "lines": [
                ["consistent_get_time_mean", "mean", "absolute", 1, 1000],
                ["consistent_get_time_median", "median", "absolute", 1, 1000],
    Severity: Major
    Found in src/collectors/python.d.plugin/riakkv/riakkv.chart.py and 7 other locations - About 2 hrs to fix
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 108..116
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 119..127
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 130..138
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 141..149
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 152..160
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 198..205
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 237..245

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

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

        "consistent.latency.put": {
            "options": [None, "Strongly consistent write latency", "ms", "latency", "riak.consistent.latency.put", "line"],
            "lines": [
                ["consistent_put_time_mean", "mean", "absolute", 1, 1000],
                ["consistent_put_time_median", "median", "absolute", 1, 1000],
    Severity: Major
    Found in src/collectors/python.d.plugin/riakkv/riakkv.chart.py and 7 other locations - About 2 hrs to fix
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 108..116
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 119..127
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 130..138
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 141..149
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 152..160
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 188..195
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 237..245

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

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

        "kv.objsize.get": {
            "options": [None, "Object size encountered by this node during the past minute", "KB", "load",
                        "riak.kv.objsize.get", "line"],
            "lines": [
                ["node_get_fsm_objsize_mean", "mean", "absolute", 1, 1024],
    Severity: Major
    Found in src/collectors/python.d.plugin/riakkv/riakkv.chart.py and 7 other locations - About 2 hrs to fix
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 108..116
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 119..127
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 130..138
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 141..149
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 152..160
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 188..195
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 198..205

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

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

        "dt.latency.map": {
            "options": [None, "Time it takes to perform an Update Map operation", "ms", "latency",
                        "riak.dt.latency.map_merge", "line"],
            "lines": [
                ["object_map_merge_time_mean", "mean", "absolute", 1, 1000],
    Severity: Major
    Found in src/collectors/python.d.plugin/riakkv/riakkv.chart.py and 7 other locations - About 2 hrs to fix
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 108..116
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 119..127
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 130..138
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 141..149
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 188..195
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 198..205
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 237..245

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

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

        "kv.latency.put": {
            "options": [None, "Time between reception of a client PUT request and subsequent response to client", "ms",
                        "latency", "riak.kv.latency.put", "line"],
            "lines": [
                ["node_put_fsm_time_mean", "mean", "absolute", 1, 1000],
    Severity: Major
    Found in src/collectors/python.d.plugin/riakkv/riakkv.chart.py and 7 other locations - About 2 hrs to fix
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 108..116
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 130..138
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 141..149
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 152..160
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 188..195
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 198..205
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 237..245

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

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

        "dt.latency.counter": {
            "options": [None, "Time it takes to perform an Update Counter operation", "ms", "latency",
                        "riak.dt.latency.counter_merge", "line"],
            "lines": [
                ["object_counter_merge_time_mean", "mean", "absolute", 1, 1000],
    Severity: Major
    Found in src/collectors/python.d.plugin/riakkv/riakkv.chart.py and 7 other locations - About 2 hrs to fix
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 108..116
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 119..127
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 141..149
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 152..160
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 188..195
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 198..205
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 237..245

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

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

        "kv.latency.get": {
            "options": [None, "Time between reception of a client GET request and subsequent response to client", "ms",
                        "latency", "riak.kv.latency.get", "line"],
            "lines": [
                ["node_get_fsm_time_mean", "mean", "absolute", 1, 1000],
    Severity: Major
    Found in src/collectors/python.d.plugin/riakkv/riakkv.chart.py and 7 other locations - About 2 hrs to fix
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 119..127
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 130..138
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 141..149
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 152..160
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 188..195
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 198..205
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 237..245

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

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

        "dt.latency.set": {
            "options": [None, "Time it takes to perform an Update Set operation", "ms", "latency",
                        "riak.dt.latency.set_merge", "line"],
            "lines": [
                ["object_set_merge_time_mean", "mean", "absolute", 1, 1000],
    Severity: Major
    Found in src/collectors/python.d.plugin/riakkv/riakkv.chart.py and 7 other locations - About 2 hrs to fix
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 108..116
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 119..127
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 130..138
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 152..160
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 188..195
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 198..205
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 237..245

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

    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

        "kv.siblings_encountered.get": {
            "options": [None, "Number of siblings encountered during GET operations by this node during the past minute",
                        "siblings", "load", "riak.kv.siblings_encountered.get", "line"],
            "lines": [
                ["node_get_fsm_siblings_mean", "mean", "absolute"],
    Severity: Major
    Found in src/collectors/python.d.plugin/riakkv/riakkv.chart.py and 2 other locations - About 1 hr to fix
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 248..257
    src/collectors/python.d.plugin/traefik/traefik.chart.py on lines 23..30

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 40.

    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

        "search.vnodeq_size": {
            "options": [None,
                        "Number of unprocessed messages in the vnode message queues of Search on this node in the past minute",
                        "messages", "load", "riak.search.vnodeq_size", "line"],
            "lines": [
    Severity: Major
    Found in src/collectors/python.d.plugin/riakkv/riakkv.chart.py and 2 other locations - About 1 hr to fix
    src/collectors/python.d.plugin/riakkv/riakkv.chart.py on lines 226..234
    src/collectors/python.d.plugin/traefik/traefik.chart.py on lines 23..30

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 40.

    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

        "core.fsm_active": {
            "options": [None, "Active finite state machines by kind", "fsms", "load", "riak.core.fsm_active", "line"],
            "lines": [
                ["node_get_fsm_active", "get", "absolute"],
                ["node_put_fsm_active", "put", "absolute"],
    Severity: Minor
    Found in src/collectors/python.d.plugin/riakkv/riakkv.chart.py and 1 other location - About 45 mins to fix
    src/collectors/python.d.plugin/nsd/nsd.chart.py on lines 38..44

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

    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