nemesiscodex/openfonacide

View on GitHub

Showing 970 of 970 total issues

Function settings has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

          settings: function() {
            var
              runSettings
            ;
            runSettings = settings.beforeSend.call($module, settings);
Severity: Minor
Found in static/components/api.js - About 1 hr to fix

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

    Severity: Major
    Found in openfonacide/migrations/0029_delete_estadoslocales.py and 3 other locations - About 1 hr to fix
    openfonacide/migrations/0023_delete_espacios.py on lines 0..14
    openfonacide/migrations/0025_delete_sanitarios.py on lines 0..14
    openfonacide/migrations/0027_delete_mobiliarios.py on lines 0..14

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

    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

    Severity: Major
    Found in openfonacide/migrations/0023_delete_espacios.py and 3 other locations - About 1 hr to fix
    openfonacide/migrations/0025_delete_sanitarios.py on lines 0..14
    openfonacide/migrations/0027_delete_mobiliarios.py on lines 0..14
    openfonacide/migrations/0029_delete_estadoslocales.py on lines 0..14

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

    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

    Severity: Major
    Found in openfonacide/migrations/0027_delete_mobiliarios.py and 3 other locations - About 1 hr to fix
    openfonacide/migrations/0023_delete_espacios.py on lines 0..14
    openfonacide/migrations/0025_delete_sanitarios.py on lines 0..14
    openfonacide/migrations/0029_delete_estadoslocales.py on lines 0..14

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

    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

    Severity: Major
    Found in openfonacide/migrations/0025_delete_sanitarios.py and 3 other locations - About 1 hr to fix
    openfonacide/migrations/0023_delete_espacios.py on lines 0..14
    openfonacide/migrations/0027_delete_mobiliarios.py on lines 0..14
    openfonacide/migrations/0029_delete_estadoslocales.py on lines 0..14

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

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

        sum : kwargs((function () {
            function withAxis(data, source, offsetStride, axisSize, stride) {
                var cursor = 0;
                for (var offset = 0; offset < this._size; offset+=offsetStride) {
                    for (var i = 0; i < stride; i++) {
    Severity: Minor
    Found in static/js/dncp/util/ndarray.js - About 1 hr to fix

      Function prod has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          prod : kwargs((function () {
              function withAxis(data, source, offsetStride, axisSize, stride) {
                  var cursor = 0;
                  for (var offset = 0; offset < this._size; offset+=offsetStride) {
                      for (var i = 0; i < stride; i++) {
      Severity: Minor
      Found in static/js/dncp/util/ndarray.js - About 1 hr to fix

        Function getPiece has 27 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                function getPiece(axis, offset) {
                    var range = ranges[axis];
                    var stride = strides[axis];
                    if (axis < len-1) {
                        if (range[2] > 0) {
        Severity: Minor
        Found in static/js/dncp/util/ndarray.js - About 1 hr to fix

          Function integer has 27 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              integer: function(value, range) {
                var
                  intRegExp = /^\-?\d+$/,
                  min,
                  max,
          Severity: Minor
          Found in static/components/form.js - About 1 hr to fix

            Function keydown has 27 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                        keydown: function(event) {
                          var
                            $field  = $(this),
                            key     = event.which,
                            keyCode = {
            Severity: Minor
            Found in static/components/form.js - About 1 hr to fix

              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[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

                                  for (var j = 0; j < axisSize; j++) {
                                      var diff = source[idx] - mean;
                                      moments += diff * diff;
                                      idx += stride;
                                  }
              Severity: Major
              Found in static/js/dncp/util/ndarray.js and 1 other location - About 1 hr to fix
              static/js/dncp/util/ndarray.js on lines 951..955

              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

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

                                  for (var j = 0; j < axisSize; j++) {
                                      var diff = source[idx] - mean;
                                      moments += diff * diff;
                                      idx += stride;
                                  }
              Severity: Major
              Found in static/js/dncp/util/ndarray.js and 1 other location - About 1 hr to fix
              static/js/dncp/util/ndarray.js on lines 1003..1007

              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

              Function getAutoFormatter has 26 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function getAutoFormatter(min, max, splitNumber) {
                      splitNumber = splitNumber > 1 ? splitNumber : 2;
                      // 最优解
                      var curValue;
                      var totalGap;
              Severity: Minor
              Found in static/js/dncp/util/date.js - About 1 hr to fix

                Function cumsum has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    cumsum : kwargs((function () {
                        function withAxis(data, source, offsetStride, axisSize, stride) {
                            for (var offset = 0; offset < this._size; offset+=offsetStride) {
                                for (var i = 0; i < stride; i++) {
                                    var idx = offset + i;
                Severity: Minor
                Found in static/js/dncp/util/ndarray.js - About 1 hr to fix

                  Function cumprod has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      cumprod : kwargs((function () {
                          function withAxis(data, source, offsetStride, axisSize, stride) {
                              for (var offset = 0; offset < this._size; offset+=offsetStride) {
                                  for (var i = 0; i < stride; i++) {
                                      var idx = offset + i;
                  Severity: Minor
                  Found in static/js/dncp/util/ndarray.js - About 1 hr to fix

                    Function onEndTransitionFn has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                                var onEndTransitionFn = function( ev ) {
                                    if( support.transitions ) {
                                        if( ev.propertyName.indexOf( 'transform' ) === -1 ) return false;
                                        this.removeEventListener( transEndEventName, onEndTransitionFn );
                                    }
                    Severity: Minor
                    Found in static/js/cbpGridGallery.js - About 1 hr to fix
                      Severity
                      Category
                      Status
                      Source
                      Language