nemesiscodex/openfonacide

View on GitHub
static/js/frontend.ResumenController.js

Summary

Maintainability
F
6 days
Test Coverage

File frontend.ResumenController.js has 435 lines of code (exceeds 250 allowed). Consider refactoring.
Open

(function(){
    function get_options_pie(titulo, subtitulo, legendData, series){
        return {
            title: {
                text: titulo,
Severity: Minor
Found in static/js/frontend.ResumenController.js - About 6 hrs to fix

    Function actualizarResumen has 127 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            $scope.actualizarResumen = function(){
              $scope.loading = true;
              $scope.sin_datos = false;
              var resumen = {};
              resumen.anios = $scope.anioSelected;
    Severity: Major
    Found in static/js/frontend.ResumenController.js - About 5 hrs to fix

      Function get_options_bar has 70 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function get_options_bar(titulo, subtitulo, legendData, legendSelected, categoryData, series){
              return {
                  title : {
                      text: titulo,
                      subtext: subtitulo,
      Severity: Major
      Found in static/js/frontend.ResumenController.js - About 2 hrs to fix

        Consider simplifying this complex logical expression.
        Open

                      if($scope.data.ubicaciones && typeof (obtenerUbicacion) == 'function'){
                          var ubicaciones = $scope.data.ubicaciones;
                          $scope.rDepartamentos = ubicaciones
                              .filter(function(obj){return !!obj[0] && !obj[1] && !obj[2]})
                              .map(function(obj){return obtenerUbicacion(obj, true, true);});
        Severity: Critical
        Found in static/js/frontend.ResumenController.js - About 2 hrs to fix

          Function get_series_bar has 63 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function get_series_bar(data){
                  function get_item_style(color){
                      return {
                          normal: {
                              color: color,
          Severity: Major
          Found in static/js/frontend.ResumenController.js - About 2 hrs to fix

            Function get_series_doble_pie has 61 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function get_series_doble_pie(innerTitle, innerData, outerTittle, outerData){
                    return [
                        {
                            name: innerTitle,
                            type: 'pie',
            Severity: Major
            Found in static/js/frontend.ResumenController.js - About 2 hrs to fix

              Function get_options_pie has 50 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function get_options_pie(titulo, subtitulo, legendData, series){
                      return {
                          title: {
                              text: titulo,
                              subtext: subtitulo,
              Severity: Minor
              Found in static/js/frontend.ResumenController.js - About 2 hrs to fix

                Function get_options_bar has 6 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    function get_options_bar(titulo, subtitulo, legendData, legendSelected, categoryData, series){
                Severity: Minor
                Found in static/js/frontend.ResumenController.js - About 45 mins to fix

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

                                if(tipoRequerimiento['sanitario']){
                                    //series
                                    options = get_options_pie('Sanitarios', 'Tipo de Requerimientos',
                                        ['NUEVO', 'REPARACION', 'ADECUACION'],
                                        get_series_doble_pie('Cantidad de prioridades', tipoRequerimiento['sanitario']['pedidos'],
                  Severity: Major
                  Found in static/js/frontend.ResumenController.js and 2 other locations - About 4 hrs to fix
                  static/js/frontend.ResumenController.js on lines 410..421
                  static/js/frontend.ResumenController.js on lines 422..433

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

                  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

                                if(tipoRequerimiento['otros']){
                                    //series
                                    options = get_options_pie('Otros espacios', 'Tipo de Requerimientos',
                                        ['NUEVO', 'REPARACION', 'ADECUACION'],
                                        get_series_doble_pie('Pedidos', tipoRequerimiento['otros']['pedidos'],
                  Severity: Major
                  Found in static/js/frontend.ResumenController.js and 2 other locations - About 4 hrs to fix
                  static/js/frontend.ResumenController.js on lines 398..409
                  static/js/frontend.ResumenController.js on lines 410..421

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

                  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

                                if(tipoRequerimiento['aulas']) {
                                    //series
                                    options = get_options_pie('Aulas', 'Tipo de Requerimientos',
                                        ['NUEVO', 'REPARACION', 'ADECUACION'],
                                        get_series_doble_pie('Pedidos', tipoRequerimiento['aulas']['pedidos'],
                  Severity: Major
                  Found in static/js/frontend.ResumenController.js and 2 other locations - About 4 hrs to fix
                  static/js/frontend.ResumenController.js on lines 398..409
                  static/js/frontend.ResumenController.js on lines 422..433

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

                  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

                                  itemStyle : {
                                      normal : {
                                          label: {
                                              position: 'inner',
                                              textStyle: {
                  Severity: Major
                  Found in static/js/frontend.ResumenController.js and 1 other location - About 3 hrs to fix
                  static/js/frontend.ResumenController.js on lines 169..187

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

                  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

                                  itemStyle : {
                                      normal : {
                                          label: {
                                              position: 'inner',
                                              textStyle: {
                  Severity: Major
                  Found in static/js/frontend.ResumenController.js and 1 other location - About 3 hrs to fix
                  static/js/frontend.ResumenController.js on lines 138..156

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

                  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

                                  data: data.map(function (arr) {
                                      if(arr[1] == null || arr[1] == undefined){
                                          return 0;
                                      }
                                      return arr[1]
                  Severity: Major
                  Found in static/js/frontend.ResumenController.js and 3 other locations - About 1 hr to fix
                  static/js/frontend.ResumenController.js on lines 231..236
                  static/js/frontend.ResumenController.js on lines 244..249
                  static/js/frontend.ResumenController.js on lines 257..262

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

                  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

                                  data: data.map(function (arr) {
                                      if(arr[4] == null || arr[4] == undefined){
                                          return 0;
                                      }
                                      return arr[4]
                  Severity: Major
                  Found in static/js/frontend.ResumenController.js and 3 other locations - About 1 hr to fix
                  static/js/frontend.ResumenController.js on lines 219..224
                  static/js/frontend.ResumenController.js on lines 244..249
                  static/js/frontend.ResumenController.js on lines 257..262

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

                  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

                                  data: data.map(function (arr) {
                                      if(arr[2] == null || arr[2] == undefined){
                                          return 0;
                                      }
                                      return arr[2]
                  Severity: Major
                  Found in static/js/frontend.ResumenController.js and 3 other locations - About 1 hr to fix
                  static/js/frontend.ResumenController.js on lines 219..224
                  static/js/frontend.ResumenController.js on lines 231..236
                  static/js/frontend.ResumenController.js on lines 257..262

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

                  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

                                  data: data.map(function (arr) {
                                      if(arr[3] == null || arr[3] == undefined){
                                          return 0;
                                      }
                                      return arr[3]
                  Severity: Major
                  Found in static/js/frontend.ResumenController.js and 3 other locations - About 1 hr to fix
                  static/js/frontend.ResumenController.js on lines 219..224
                  static/js/frontend.ResumenController.js on lines 231..236
                  static/js/frontend.ResumenController.js on lines 244..249

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

                  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

                                    $scope.rBarrios = ubicaciones
                                        .filter(function(obj){return !!obj[0] && !!obj[1] && !!obj[2]})
                                        .map(function(obj){return obtenerUbicacion(obj, true, true);});
                  Severity: Major
                  Found in static/js/frontend.ResumenController.js and 1 other location - About 1 hr to fix
                  static/js/frontend.ResumenController.js on lines 371..373

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

                  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

                                    $scope.rBarriosParent = ubicaciones
                                        .filter(function(obj){return !!obj[0] && !!obj[1] && !!obj[2]})
                                        .map(function(obj){return obtenerUbicacion(obj, false, false, ' ➜ ');});
                  Severity: Major
                  Found in static/js/frontend.ResumenController.js and 1 other location - About 1 hr to fix
                  static/js/frontend.ResumenController.js on lines 368..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 55.

                  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

                                  max: innerData.map(function(obj){return obj.value}).reduce(function(a, b){ return (a>b)? a:b;}, 0),
                  Severity: Major
                  Found in static/js/frontend.ResumenController.js and 1 other location - About 1 hr to fix
                  static/js/frontend.ResumenController.js on lines 192..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 55.

                  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

                                  max: outerData.map(function(obj){return obj.value}).reduce(function(a, b){ return (a>b)? a:b;}, 0),
                  Severity: Major
                  Found in static/js/frontend.ResumenController.js and 1 other location - About 1 hr to fix
                  static/js/frontend.ResumenController.js on lines 161..161

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

                  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

                                    $scope.rDistritosParent = ubicaciones
                                        .filter(function(obj){return !!obj[0] && !!obj[1] && !obj[2]})
                                        .map(function(obj){return obtenerUbicacion(obj, false, false, ' ➜ ');});
                  Severity: Minor
                  Found in static/js/frontend.ResumenController.js and 1 other location - About 55 mins to fix
                  static/js/frontend.ResumenController.js on lines 362..364

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

                  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

                                    $scope.rDistritos = ubicaciones
                                        .filter(function(obj){return !!obj[0] && !!obj[1] && !obj[2]})
                                        .map(function(obj){return obtenerUbicacion(obj, true, true);});
                  Severity: Minor
                  Found in static/js/frontend.ResumenController.js and 1 other location - About 55 mins to fix
                  static/js/frontend.ResumenController.js on lines 365..367

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

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

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

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

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

                  Refactorings

                  Further Reading

                  There are no issues that match your filters.

                  Category
                  Status