Vizzuality/gfw-climate

View on GitHub

Showing 1,213 of 1,213 total issues

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

      _createLegend: function(el, data, category) {
        this.legends.push({
          element: el,
          data: data,
          category: category,
app/assets/javascripts/insights/views/InsightsGladAlertsView.js on lines 244..253

Duplicated Code

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

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

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

Tuning

This issue has a mass of 70.

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

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

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

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

Refactorings

Further Reading

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

      var xAxis = d3.svg
        .axis()
        .scale(x)
        .orient('bottom')
        .tickPadding(10)
app/assets/javascripts/embed/views/pantropical/PantropicalTotalEmissionsView.js on lines 94..100

Duplicated Code

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

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

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

Tuning

This issue has a mass of 70.

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

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

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

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

Refactorings

Further Reading

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

          case 'areas-interest':
            if (params.areas) {
              _.map(
                params.areas,
                function(a) {
app/assets/javascripts/countries/presenters/show/WidgetGridPresenter.js on lines 395..405

Duplicated Code

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

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

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

Tuning

This issue has a mass of 70.

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

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

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

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

Refactorings

Further Reading

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

          case 'subnational':
            if (params.jurisdictions) {
              _.map(
                params.jurisdictions,
                function(j) {
app/assets/javascripts/countries/presenters/show/WidgetGridPresenter.js on lines 407..417

Duplicated Code

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

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

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

Tuning

This issue has a mass of 70.

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

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

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

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

Refactorings

Further Reading

Function _buildResource has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      _buildResource: function(resource) {
        mps.publish('Spinner/start');
        var date, dateFormat;
        var baselayer = this.status.get('baselayer');

Severity: Minor
Found in app/assets/javascripts/map/presenters/tabs/AnalysisPresenter.js - About 1 hr to fix

    Function create_nodes has 43 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        BubbleChart.prototype.create_nodes = function() {
          this.data.forEach(
            (function(_this) {
              return function(d) {
                if (parseFloat(d.Average).toFixed(3) > 0.003) {
    Severity: Minor
    Found in app/assets/javascripts/embed/views/pantropical/vis.js - About 1 hr to fix

      Function get_label_text has 43 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          BubbleChart.prototype.get_label_text = function(
            order,
            coordinates,
            id,
            country,
      Severity: Minor
      Found in app/assets/javascripts/embed/views/pantropical/vis.js - About 1 hr to fix

        Function _drawBars has 43 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

              _drawBars: function() {
                var averageGroup = this.svg.select('.average');
                var leftOffset =
                  d3.transform(averageGroup.attr('transform')).translate[0] +
                  this.defaults.barMargin;

          Function _drawFooterAverages has 43 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                _drawFooterAverages: function() {
                  var rowOffset = this.defaults.rowHeight;
                  var averageGroup = this.svg.select('.loss');
                  var averageLabel = _.findWhere(this.defaults.labels, { slug: 'loss' });
                  var averageLabelWidth = averageLabel.width * this.cWidthGrid / 100;

            Function getContinents has 43 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                  getContinents: function(options) {
                    var filters = options || {
                      geo: false
                    };
                    return new Promise(
            Severity: Minor
            Found in app/assets/javascripts/services/ContinentService.js - About 1 hr to fix

              Function create_nodes has 43 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  BubbleChart.prototype.create_nodes = function() {
                    this.data.forEach(
                      (function(_this) {
                        return function(d) {
                          if (parseFloat(d.Average).toFixed(3) > 0.003) {
              Severity: Minor
              Found in app/assets/javascripts/countries/views/pantropical/vis.js - About 1 hr to fix

                Function get_label_text has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    BubbleChart.prototype.get_label_text = function(
                      order,
                      coordinates,
                      id,
                      country,
                Severity: Minor
                Found in app/assets/javascripts/countries/views/pantropical/vis.js - About 1 hr to fix

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

                  define(
                    [
                      'abstract/layer/CartoDBLayerClass',
                      'text!map/cartocss/plantations_by_type.cartocss'
                    ],
                  app/assets/javascripts/map/views/layers/BraPlantationsLayerBySpecies.js on lines 6..28
                  app/assets/javascripts/map/views/layers/ColPlantationsLayerBySpecies.js on lines 6..28
                  app/assets/javascripts/map/views/layers/ColPlantationsLayerByType.js on lines 6..28
                  app/assets/javascripts/map/views/layers/IdnPlantationsLayerBySpecies.js on lines 6..28
                  app/assets/javascripts/map/views/layers/IdnPlantationsLayerByType.js on lines 6..28
                  app/assets/javascripts/map/views/layers/KhmPlantationsLayerBySpecies.js on lines 6..28
                  app/assets/javascripts/map/views/layers/KhmPlantationsLayerByType.js on lines 6..28
                  app/assets/javascripts/map/views/layers/LbrPlantationsLayerBySpecies.js on lines 6..28
                  app/assets/javascripts/map/views/layers/LbrPlantationsLayerByType.js on lines 6..28
                  app/assets/javascripts/map/views/layers/MysPlantationsLayerBySpecies.js on lines 6..28
                  app/assets/javascripts/map/views/layers/MysPlantationsLayerByType.js on lines 6..28
                  app/assets/javascripts/map/views/layers/PerPlantationsLayerBySpecies.js on lines 6..28
                  app/assets/javascripts/map/views/layers/PerPlantationsLayerByType.js on lines 6..28
                  app/assets/javascripts/map/views/layers/PlantationsLayerBySpecies.js on lines 6..28
                  app/assets/javascripts/map/views/layers/PlantationsLayerByType.js on lines 6..28

                  Duplicated Code

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

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

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

                  Tuning

                  This issue has a mass of 69.

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

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

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

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

                  Refactorings

                  Further Reading

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

                  define(
                    [
                      'abstract/layer/CartoDBLayerClass',
                      'text!map/cartocss/plantations_by_type.cartocss'
                    ],
                  app/assets/javascripts/map/views/layers/BraPlantationsLayerBySpecies.js on lines 6..28
                  app/assets/javascripts/map/views/layers/BraPlantationsLayerByType.js on lines 6..28
                  app/assets/javascripts/map/views/layers/ColPlantationsLayerBySpecies.js on lines 6..28
                  app/assets/javascripts/map/views/layers/IdnPlantationsLayerBySpecies.js on lines 6..28
                  app/assets/javascripts/map/views/layers/IdnPlantationsLayerByType.js on lines 6..28
                  app/assets/javascripts/map/views/layers/KhmPlantationsLayerBySpecies.js on lines 6..28
                  app/assets/javascripts/map/views/layers/KhmPlantationsLayerByType.js on lines 6..28
                  app/assets/javascripts/map/views/layers/LbrPlantationsLayerBySpecies.js on lines 6..28
                  app/assets/javascripts/map/views/layers/LbrPlantationsLayerByType.js on lines 6..28
                  app/assets/javascripts/map/views/layers/MysPlantationsLayerBySpecies.js on lines 6..28
                  app/assets/javascripts/map/views/layers/MysPlantationsLayerByType.js on lines 6..28
                  app/assets/javascripts/map/views/layers/PerPlantationsLayerBySpecies.js on lines 6..28
                  app/assets/javascripts/map/views/layers/PerPlantationsLayerByType.js on lines 6..28
                  app/assets/javascripts/map/views/layers/PlantationsLayerBySpecies.js on lines 6..28
                  app/assets/javascripts/map/views/layers/PlantationsLayerByType.js on lines 6..28

                  Duplicated Code

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

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

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

                  Tuning

                  This issue has a mass of 69.

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

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

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

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

                  Refactorings

                  Further Reading

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

                  define(
                    [
                      'abstract/layer/CartoDBLayerClass',
                      'text!map/cartocss/plantations_by_type.cartocss'
                    ],
                  app/assets/javascripts/map/views/layers/BraPlantationsLayerBySpecies.js on lines 6..28
                  app/assets/javascripts/map/views/layers/BraPlantationsLayerByType.js on lines 6..28
                  app/assets/javascripts/map/views/layers/ColPlantationsLayerBySpecies.js on lines 6..28
                  app/assets/javascripts/map/views/layers/ColPlantationsLayerByType.js on lines 6..28
                  app/assets/javascripts/map/views/layers/IdnPlantationsLayerBySpecies.js on lines 6..28
                  app/assets/javascripts/map/views/layers/KhmPlantationsLayerBySpecies.js on lines 6..28
                  app/assets/javascripts/map/views/layers/KhmPlantationsLayerByType.js on lines 6..28
                  app/assets/javascripts/map/views/layers/LbrPlantationsLayerBySpecies.js on lines 6..28
                  app/assets/javascripts/map/views/layers/LbrPlantationsLayerByType.js on lines 6..28
                  app/assets/javascripts/map/views/layers/MysPlantationsLayerBySpecies.js on lines 6..28
                  app/assets/javascripts/map/views/layers/MysPlantationsLayerByType.js on lines 6..28
                  app/assets/javascripts/map/views/layers/PerPlantationsLayerBySpecies.js on lines 6..28
                  app/assets/javascripts/map/views/layers/PerPlantationsLayerByType.js on lines 6..28
                  app/assets/javascripts/map/views/layers/PlantationsLayerBySpecies.js on lines 6..28
                  app/assets/javascripts/map/views/layers/PlantationsLayerByType.js on lines 6..28

                  Duplicated Code

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

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

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

                  Tuning

                  This issue has a mass of 69.

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

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

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

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

                  Refactorings

                  Further Reading

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

                  define(
                    [
                      'abstract/layer/CartoDBLayerClass',
                      'text!map/cartocss/plantations_by_species.cartocss'
                    ],
                  app/assets/javascripts/map/views/layers/BraPlantationsLayerBySpecies.js on lines 6..28
                  app/assets/javascripts/map/views/layers/BraPlantationsLayerByType.js on lines 6..28
                  app/assets/javascripts/map/views/layers/ColPlantationsLayerBySpecies.js on lines 6..28
                  app/assets/javascripts/map/views/layers/ColPlantationsLayerByType.js on lines 6..28
                  app/assets/javascripts/map/views/layers/IdnPlantationsLayerByType.js on lines 6..28
                  app/assets/javascripts/map/views/layers/KhmPlantationsLayerBySpecies.js on lines 6..28
                  app/assets/javascripts/map/views/layers/KhmPlantationsLayerByType.js on lines 6..28
                  app/assets/javascripts/map/views/layers/LbrPlantationsLayerBySpecies.js on lines 6..28
                  app/assets/javascripts/map/views/layers/LbrPlantationsLayerByType.js on lines 6..28
                  app/assets/javascripts/map/views/layers/MysPlantationsLayerBySpecies.js on lines 6..28
                  app/assets/javascripts/map/views/layers/MysPlantationsLayerByType.js on lines 6..28
                  app/assets/javascripts/map/views/layers/PerPlantationsLayerBySpecies.js on lines 6..28
                  app/assets/javascripts/map/views/layers/PerPlantationsLayerByType.js on lines 6..28
                  app/assets/javascripts/map/views/layers/PlantationsLayerBySpecies.js on lines 6..28
                  app/assets/javascripts/map/views/layers/PlantationsLayerByType.js on lines 6..28

                  Duplicated Code

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

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

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

                  Tuning

                  This issue has a mass of 69.

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

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

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

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

                  Refactorings

                  Further Reading

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

                  define(
                    [
                      'abstract/layer/CartoDBLayerClass',
                      'text!map/cartocss/mangrove_biomass.cartocss'
                    ],
                  app/assets/javascripts/map/views/layers/BraMiningLayer.js on lines 6..28
                  app/assets/javascripts/map/views/layers/DamHotspotsLayer.js on lines 6..28
                  app/assets/javascripts/map/views/layers/MysPALayer.js on lines 6..25
                  app/assets/javascripts/map/views/layers/PeatLandsDrainageLayer.js on lines 6..28
                  app/assets/javascripts/map/views/layers/PerMiningLayer.js on lines 6..28
                  app/assets/javascripts/map/views/layers/RusHcvLayer.js on lines 6..24

                  Duplicated Code

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

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

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

                  Tuning

                  This issue has a mass of 69.

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

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

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

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

                  Refactorings

                  Further Reading

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

                  define(
                    [
                      'abstract/layer/CartoDBLayerClass',
                      'text!map/cartocss/dam_hotspots.cartocss'
                    ],
                  app/assets/javascripts/map/views/layers/BraMiningLayer.js on lines 6..28
                  app/assets/javascripts/map/views/layers/MangroveBiomassLayer.js on lines 6..27
                  app/assets/javascripts/map/views/layers/MysPALayer.js on lines 6..25
                  app/assets/javascripts/map/views/layers/PeatLandsDrainageLayer.js on lines 6..28
                  app/assets/javascripts/map/views/layers/PerMiningLayer.js on lines 6..28
                  app/assets/javascripts/map/views/layers/RusHcvLayer.js on lines 6..24

                  Duplicated Code

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

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

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

                  Tuning

                  This issue has a mass of 69.

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

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

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

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

                  Refactorings

                  Further Reading

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

                                    if (
                                      d &&
                                      d.year &&
                                      Number(d.year !== 0) &&
                                      this.between(
                  app/assets/javascripts/widgets/indicators/line/LineChartIndicator.js on lines 88..103

                  Duplicated Code

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

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

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

                  Tuning

                  This issue has a mass of 69.

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

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

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

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

                  Refactorings

                  Further Reading

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

                        _subscriptions: [
                          {
                            'Place/register': function(presenter) {
                              this._presenters = _.union(this._presenters, [presenter]);
                            }
                  Severity: Major
                  Found in app/assets/javascripts/countries/services/PlaceService.js and 4 other locations - About 1 hr to fix
                  app/assets/javascripts/compare/services/PlaceService.js on lines 75..86
                  app/assets/javascripts/embed/services/PlaceService.js on lines 32..43
                  app/assets/javascripts/map/services/PlaceService.js on lines 95..106
                  app/assets/javascripts/services/PlaceService.js on lines 78..89

                  Duplicated Code

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

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

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

                  Tuning

                  This issue has a mass of 69.

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

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

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

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

                  Refactorings

                  Further Reading

                  Severity
                  Category
                  Status
                  Source
                  Language