thundergolfer/mAIcroft

View on GitHub

Showing 322 of 322 total issues

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

    for i, w in enumerate(user.metrics["weekday"]):
        if w["weekday"] == submission_timestamp.date().weekday():
            w["submissions"] += 1
            w["submission_karma"] += submission.score
            user.metrics["weekday"][i] = w
Severity: Major
Found in maicroft/activity_metrics_proc.py and 3 other locations - About 5 hrs to fix
maicroft/activity_metrics_proc.py on lines 62..67
maicroft/users/reddit_user.py on lines 542..547
maicroft/users/reddit_user.py on lines 623..628

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

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

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

            if popular_words[singular] > 0:
                # combine the count into the most-used form of the word
                if popular_words[singular] > count:
                    popular_words[singular] += popular_words[word]
                    del popular_words[word]
Severity: Major
Found in maicroft/words/most_used_words.py and 1 other location - About 5 hrs to fix
maicroft/words/most_used_words.py on lines 349..357

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

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

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

            if popular_words[singular] > 0:

                # combine the count into the most-used form of the word
                if popular_words[singular] > count:
                    popular_words[singular] += popular_words[word]
Severity: Major
Found in maicroft/words/most_used_words.py and 1 other location - About 5 hrs to fix
maicroft/words/most_used_words.py on lines 363..370

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

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

jQuery.Callbacks = function( options ) {

    // Convert options from String-formatted to Object-formatted if needed
    // (we check in cache first)
    options = typeof options === "string" ?
Severity: Major
Found in docs/_build/html/_static/jquery-1.11.1.js - About 5 hrs to fix

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

            for i, h in enumerate(self.metrics["hour"]):
                if h["hour"] == comment_timestamp.hour:
                    h["comments"] += 1
                    h["comment_karma"] += comment.score
                    self.metrics["hour"][i] = h
    Severity: Major
    Found in maicroft/users/reddit_user.py and 3 other locations - About 5 hrs to fix
    maicroft/activity_metrics_proc.py on lines 55..60
    maicroft/activity_metrics_proc.py on lines 112..117
    maicroft/users/reddit_user.py on lines 616..621

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

    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

            for i, h in enumerate(self.metrics["hour"]):
                if h["hour"] == submission_timestamp.hour:
                    h["submissions"] += 1
                    h["submission_karma"] += submission.score
                    self.metrics["hour"][i] = h
    Severity: Major
    Found in maicroft/users/reddit_user.py and 3 other locations - About 5 hrs to fix
    maicroft/activity_metrics_proc.py on lines 55..60
    maicroft/activity_metrics_proc.py on lines 112..117
    maicroft/users/reddit_user.py on lines 535..540

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

    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

        for i, h in enumerate(user.metrics["hour"]):
            if h["hour"] == comment_timestamp.hour:
                h["comments"] += 1
                h["comment_karma"] += comment.score
                user.metrics["hour"][i] = h
    Severity: Major
    Found in maicroft/activity_metrics_proc.py and 3 other locations - About 5 hrs to fix
    maicroft/activity_metrics_proc.py on lines 112..117
    maicroft/users/reddit_user.py on lines 535..540
    maicroft/users/reddit_user.py on lines 616..621

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

    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

        for i, h in enumerate(user.metrics["hour"]):
            if h["hour"] == submission_timestamp.hour:
                h["submissions"] += 1
                h["submission_karma"] += submission.score
                user.metrics["hour"][i] = h
    Severity: Major
    Found in maicroft/activity_metrics_proc.py and 3 other locations - About 5 hrs to fix
    maicroft/activity_metrics_proc.py on lines 55..60
    maicroft/users/reddit_user.py on lines 535..540
    maicroft/users/reddit_user.py on lines 616..621

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

    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

    Consider simplifying this complex logical expression.
    Open

                if ( event.pageX == null && original.clientX != null ) {
                    eventDoc = event.target.ownerDocument || document;
                    doc = eventDoc.documentElement;
                    body = eventDoc.body;
    
    
    Severity: Critical
    Found in docs/_build/html/_static/jquery-1.11.1.js - About 5 hrs to fix

      Function query has 114 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        query : function(query) {
          var i;
          var stopwords = ["a","and","are","as","at","be","but","by","for","if","in","into","is","it","near","no","not","of","on","or","such","that","the","their","then","there","these","they","this","to","was","will","with"];
      
          // stem the searchterms and add them to the correct list
      Severity: Major
      Found in docs/_build/html/_static/searchtools.js - About 4 hrs to fix

        File social_info_extraction.py has 350 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        import datetime
        try:
            import urlparse
        except (ImportError):
            import urllib.parse as urlparse
        Severity: Minor
        Found in maicroft/social_info_extraction.py - About 4 hrs to fix

          Function stemWord has 109 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            this.stemWord = function (w) {
              var stem;
              var suffix;
              var firstch;
              var origword = w;
          Severity: Major
          Found in docs/_build/html/_static/searchtools.js - About 4 hrs to fix

            Function defaultPrefilter has 105 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function defaultPrefilter( elem, props, opts ) {
                /* jshint validthis: true */
                var prop, value, toggle, tween, hooks, oldfire, display, checkDisplay,
                    anim = this,
                    orig = {},
            Severity: Major
            Found in docs/_build/html/_static/jquery-1.11.1.js - About 4 hrs to fix

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

                      for value, count in Counter(
                          [value for value, source in self.orientations]
                      ).most_common(1):
                          sources = [s for v, s in self.orientations if v == value]
                          orientation.append(
              Severity: Major
              Found in maicroft/users/reddit_user.py and 2 other locations - About 4 hrs to fix
              maicroft/users/reddit_user.py on lines 1101..1109
              maicroft/users/reddit_user.py on lines 1127..1135

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

              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

                      for value, count in Counter(
                          [value for value, source in self.genders]
                      ).most_common(1):
                          sources = [s for v, s in self.genders if v == value]
                          gender.append(
              Severity: Major
              Found in maicroft/users/reddit_user.py and 2 other locations - About 4 hrs to fix
              maicroft/users/reddit_user.py on lines 1114..1122
              maicroft/users/reddit_user.py on lines 1127..1135

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

              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

                      for value, count in Counter(
                          [value for value, source in self.relationship_partners]
                      ).most_common(1):
                          sources = [s for v, s in self.relationship_partners if v == value]
                          relationship_partner.append(
              Severity: Major
              Found in maicroft/users/reddit_user.py and 2 other locations - About 4 hrs to fix
              maicroft/users/reddit_user.py on lines 1101..1109
              maicroft/users/reddit_user.py on lines 1114..1122

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

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

                      for value, count in Counter(
                          [value for value, source in self.attributes]
                      ).most_common():
                          sources = [s for v, s in self.attributes if v == value]
                          attributes.append(
              Severity: Major
              Found in maicroft/users/reddit_user.py and 12 other locations - About 3 hrs to fix
              maicroft/users/reddit_user.py on lines 1140..1148
              maicroft/users/reddit_user.py on lines 1153..1161
              maicroft/users/reddit_user.py on lines 1166..1174
              maicroft/users/reddit_user.py on lines 1179..1187
              maicroft/users/reddit_user.py on lines 1192..1200
              maicroft/users/reddit_user.py on lines 1205..1213
              maicroft/users/reddit_user.py on lines 1218..1226
              maicroft/users/reddit_user.py on lines 1244..1252
              maicroft/users/reddit_user.py on lines 1257..1265
              maicroft/users/reddit_user.py on lines 1270..1278
              maicroft/users/reddit_user.py on lines 1283..1291
              maicroft/users/reddit_user.py on lines 1296..1304

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

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

                      for value, count in Counter(
                          [value for value, source in self.pets]
                      ).most_common():
                          sources = [s for v, s in self.pets if v == value]
                          pets.append(
              Severity: Major
              Found in maicroft/users/reddit_user.py and 12 other locations - About 3 hrs to fix
              maicroft/users/reddit_user.py on lines 1140..1148
              maicroft/users/reddit_user.py on lines 1153..1161
              maicroft/users/reddit_user.py on lines 1166..1174
              maicroft/users/reddit_user.py on lines 1179..1187
              maicroft/users/reddit_user.py on lines 1192..1200
              maicroft/users/reddit_user.py on lines 1218..1226
              maicroft/users/reddit_user.py on lines 1231..1239
              maicroft/users/reddit_user.py on lines 1244..1252
              maicroft/users/reddit_user.py on lines 1257..1265
              maicroft/users/reddit_user.py on lines 1270..1278
              maicroft/users/reddit_user.py on lines 1283..1291
              maicroft/users/reddit_user.py on lines 1296..1304

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

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

                      for value, count in Counter(
                          [value for value, source in self.actions_extra]
                      ).most_common():
                          sources = [s for v, s in self.actions_extra if v == value]
                          actions_extra.append(
              Severity: Major
              Found in maicroft/users/reddit_user.py and 12 other locations - About 3 hrs to fix
              maicroft/users/reddit_user.py on lines 1140..1148
              maicroft/users/reddit_user.py on lines 1153..1161
              maicroft/users/reddit_user.py on lines 1166..1174
              maicroft/users/reddit_user.py on lines 1179..1187
              maicroft/users/reddit_user.py on lines 1192..1200
              maicroft/users/reddit_user.py on lines 1205..1213
              maicroft/users/reddit_user.py on lines 1218..1226
              maicroft/users/reddit_user.py on lines 1231..1239
              maicroft/users/reddit_user.py on lines 1244..1252
              maicroft/users/reddit_user.py on lines 1257..1265
              maicroft/users/reddit_user.py on lines 1270..1278
              maicroft/users/reddit_user.py on lines 1283..1291

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

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

                      for value, count in Counter(
                          [value for value, source in self.possessions]
                      ).most_common():
                          sources = [s for v, s in self.possessions if v == value]
                          possessions.append(
              Severity: Major
              Found in maicroft/users/reddit_user.py and 12 other locations - About 3 hrs to fix
              maicroft/users/reddit_user.py on lines 1140..1148
              maicroft/users/reddit_user.py on lines 1153..1161
              maicroft/users/reddit_user.py on lines 1166..1174
              maicroft/users/reddit_user.py on lines 1179..1187
              maicroft/users/reddit_user.py on lines 1192..1200
              maicroft/users/reddit_user.py on lines 1205..1213
              maicroft/users/reddit_user.py on lines 1218..1226
              maicroft/users/reddit_user.py on lines 1231..1239
              maicroft/users/reddit_user.py on lines 1244..1252
              maicroft/users/reddit_user.py on lines 1270..1278
              maicroft/users/reddit_user.py on lines 1283..1291
              maicroft/users/reddit_user.py on lines 1296..1304

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

              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