Showing 670 of 670 total issues

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

softmax = function (input) {

  if (!(input instanceof Array))
    throw(TypeError("Input passed into softmax() is not an array. softmax() expects an array. Input: " + input, "nnVizUtils.js"));

Severity: Major
Found in people/a/AlammarJay/js/nnVizUtils.js and 1 other location - About 7 hrs to fix
people/a/AlammarJay/js/nn_calc.js on lines 733..752

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

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

  softmax = function (input) {

    if (!(input instanceof Array))
      throw (TypeError("Input passed into softmax() is not an array. softmax() expects an array. Input: " + input, "nnVizUtils.js"))

Severity: Major
Found in people/a/AlammarJay/js/nn_calc.js and 1 other location - About 7 hrs to fix
people/a/AlammarJay/js/nnVizUtils.js on lines 71..90

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

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

var reluGraph = function (containerElement, xStart, xEnd, xDefault, sliderElement, reluInputElement,
                          reluFormulaInputElement, reluResult, reluGraphResult) {
  this.containerElement = containerElement
  this.graphWidth = 400
  this.graphHeight = 160
Severity: Major
Found in people/a/AlammarJay/js/relu_graph.js and 1 other location - About 7 hrs to fix
people/a/AlammarJay/js/sigmoid_graph.js on lines 5..23

Duplicated Code

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

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

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

Tuning

This issue has a mass of 187.

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

var sigmoidGraph = function (containerElement, xStart, xEnd, xDefault, sliderElement, sigmoidInputElement,
                             sigmoidFormulaInputElement, sigmoidResult, sigmoidGraphResult) {
  this.containerElement = containerElement;
  this.graphWidth = 400;
  this.graphHeight = 160;
Severity: Major
Found in people/a/AlammarJay/js/sigmoid_graph.js and 1 other location - About 7 hrs to fix
people/a/AlammarJay/js/relu_graph.js on lines 5..23

Duplicated Code

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

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

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

Tuning

This issue has a mass of 187.

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

File shallow_nn_grapher.js has 442 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
 * Created by alammar on 12/8/16.
 */

var shallowNeuralNetworkGrapher = function (inputNodeCount, outputNodeCount, svgElement, analyticsCategory) {
Severity: Minor
Found in people/a/AlammarJay/js/shallow_nn_grapher.js - About 6 hrs to fix

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

    reluGraph.prototype.attachEventsToSlider = function () {
      console.log("attach", this.sliderElement)
      // Attach events to react to the user moving the sliders
      var self = this
      $(this.sliderElement).on("input change", (function () {
    Severity: Major
    Found in people/a/AlammarJay/js/relu_graph.js and 1 other location - About 6 hrs to fix
    people/a/AlammarJay/js/sigmoid_graph.js on lines 181..192

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

    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

    sigmoidGraph.prototype.attachEventsToSlider = function () {
      console.log("attach", this.sliderElement);
      // Attach events to react to the user moving the sliders
      var self = this;
      $(this.sliderElement).on("input change", (function () {
    Severity: Major
    Found in people/a/AlammarJay/js/sigmoid_graph.js and 1 other location - About 6 hrs to fix
    people/a/AlammarJay/js/relu_graph.js on lines 181..192

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

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

      protected async createReplacer(context: HtmlRR0SsgContext): Promise<DomReplacer> {
        const doc = context.file.document
        return new class implements DomReplacer {
          async replace(original: HTMLElement): Promise<HTMLElement> {
            if (!original.hasChildNodes()) {
    Severity: Minor
    Found in lang/LanguageReplaceCommand.ts - About 6 hrs 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

    File naming_conventions_files.py has 422 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    # coding: utf-8
    
    # toutes les chaines sont en unicode (même les docstrings)
    from __future__ import unicode_literals
    
    
    Severity: Minor
    Found in time/datasource/sceau/naming_conventions_files.py - About 6 hrs to fix

      Function build has 153 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        build(oldContext: RR0SsgContext, newContext: RR0SsgContext): string {
          const previousTime = oldContext?.time;
          if (!previousTime?.isDefined()) {
            return this.timeTextBuilder.build(newContext)
          }
      Severity: Major
      Found in time/RelativeTimeTextBuilder.ts - About 6 hrs to fix

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

            this.neuralNetworkMargin = {top: 10, right: 10, bottom: 10, left: 10},
              this.neuralNetworkWidth = +this.nnGraphHolder.attr("width") - this.neuralNetworkMargin.left - this.neuralNetworkMargin.right,
              this.neuralNetworkHeight = +this.nnGraphHolder.attr("height") - this.neuralNetworkMargin.top - this.neuralNetworkMargin.bottom,
              this.neuralNetworkG = this.nnGraphHolder.append("g")
        Severity: Major
        Found in people/a/AlammarJay/js/nn_calc.js and 1 other location - About 5 hrs to fix
        people/a/AlammarJay/js/simple_nn.js on lines 695..698

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

        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

          this.neuralNetworkMargin = {top: 10, right: 10, bottom: 10, left: 10},
            this.neuralNetworkWidth = +this.nnGraphHolder.attr("width") - this.neuralNetworkMargin.left - this.neuralNetworkMargin.right,
            this.neuralNetworkHeight = +this.nnGraphHolder.attr("height") - this.neuralNetworkMargin.top - this.neuralNetworkMargin.bottom,
            this.neuralNetworkG = this.nnGraphHolder.append("g");
        Severity: Major
        Found in people/a/AlammarJay/js/simple_nn.js and 1 other location - About 5 hrs to fix
        people/a/AlammarJay/js/nn_calc.js on lines 1729..1732

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

        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

        File two_variable_nn.js has 398 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        var multiVariableNeuralNetworkTrainer = function (numberOfInputNodes,
                                                          svg_el, table_el,
                                                          dataPoints, labels,
                                                          weights, bias,
                                                          gradientDescentButton, gradientDescent10Button, gradientDescent100Button,
        Severity: Minor
        Found in people/a/AlammarJay/js/two_variable_nn.js - About 5 hrs to fix

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

                var inputs = inputGroups.enter()
                  .append("g")
                  .attr("class", "input-group")
                  .attr("transform", function (d) {
                    return "translate(" +
          Severity: Major
          Found in people/a/AlammarJay/js/nn_calc.js and 2 other locations - About 5 hrs to fix
          people/a/AlammarJay/js/nn_calc.js on lines 36..74
          people/a/AlammarJay/js/nn_calc.js on lines 1249..1284

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

          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

              var inputs = inputGroups.enter()
                .append("g")
                .attr("class", "input-group")
                .attr("transform", function (d) {
                  return "translate(" +
          Severity: Major
          Found in people/a/AlammarJay/js/nn_calc.js and 2 other locations - About 5 hrs to fix
          people/a/AlammarJay/js/nn_calc.js on lines 1249..1270
          people/a/AlammarJay/js/nn_calc.js on lines 1249..1284

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

          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

          multiVariableNeuralNetworkTrainer.prototype.addErrorPoint = function (value) {
          
            this.error_history.push(value);
            // Redraw the line.
            d3.select(this.svg_el + " .error-history-line")
          Severity: Major
          Found in people/a/AlammarJay/js/two_variable_nn.js and 1 other location - About 5 hrs to fix
          people/a/AlammarJay/js/simple_nn.js on lines 274..286

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

          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

          NN_trainer.prototype.addErrorPoint = function (value) {
            this.error_history.push(value);
            // Redraw the line.
            d3.select(this.error_chart_el + " .error-history-line")
              .attr("d", this.errorGraphLine)
          Severity: Major
          Found in people/a/AlammarJay/js/simple_nn.js and 1 other location - About 5 hrs to fix
          people/a/AlammarJay/js/two_variable_nn.js on lines 208..221

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

          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

            test("parse absolute internal file", async () => {
              const context = rr0TestUtil.newHtmlContext("/science/crypto/ufo/enquete/dossier", "")
              const replacer = new AnchorReplacer("https://rr0.org/", [])
              const a = document.createElement("a")
              a.href = "/Contact.html"
          Severity: Major
          Found in anchor/AnchorReplacerTest.ts and 4 other locations - About 5 hrs to fix
          anchor/AnchorReplacerTest.ts on lines 15..24
          anchor/AnchorReplacerTest.ts on lines 37..46
          anchor/AnchorReplacerTest.ts on lines 48..57
          anchor/AnchorReplacerTest.ts on lines 59..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 141.

          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

                duration: {
                  days: (d: number): string => MessageUtils.plural(d, "jour"),
                  hours: (d: number): string => MessageUtils.plural(d, "heure"),
                  minutes: (mn: number): string => MessageUtils.plural(mn, "minute"),
                  seconds: (s: number): string => MessageUtils.plural(s, "seconde"),
          Severity: Major
          Found in lang/RR0Messages_fr.ts and 1 other location - About 5 hrs to fix
          lang/RR0Messages_en.ts on lines 54..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 141.

          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

            test("parse absolute internal url", async () => {
              const context = rr0TestUtil.newHtmlContext("/science/crypto/ufo/enquete/dossier", "")
              const replacer = new AnchorReplacer("https://rr0.org/", [])
              const a = document.createElement("a")
              a.href = "/time/pluies"
          Severity: Major
          Found in anchor/AnchorReplacerTest.ts and 4 other locations - About 5 hrs to fix
          anchor/AnchorReplacerTest.ts on lines 15..24
          anchor/AnchorReplacerTest.ts on lines 26..35
          anchor/AnchorReplacerTest.ts on lines 48..57
          anchor/AnchorReplacerTest.ts on lines 59..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 141.

          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