nemesiscodex/openfonacide

View on GitHub

Showing 350 of 970 total issues

Function delete has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    'delete' : kwargs(function (obj, axis) {
        var data = this._array;
        if (typeof(obj) === 'number') {
            obj = [obj];
        }
Severity: Minor
Found in static/js/dncp/util/ndarray.js - About 1 hr to fix

    Function value has 44 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                value: function(value) {
                    if (value !== UNDEFINED) {
                        value = _strict(value);
                        if (value == '/') {
                            value = '';
    Severity: Minor
    Found in static/js/jquery.address.js - About 1 hr to fix

      Function _transposelike has 44 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          _transposelike : function (axes, out) {
              var source = this._array;
              var shape = this._shape.slice();
              var strides = calculateDimStrides(this._shape);
              var dim = shape.length;
      Severity: Minor
      Found in static/js/dncp/util/ndarray.js - About 1 hr to fix

        Function fetchResults has 44 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

              var fetchResults = function(){
                if(!$scope.fetch) return;
                var
                  $segment = $('.results.segment'),
                  $loader  = $segment.find('.inline.loader');
        Severity: Minor
        Found in static/js/frontend.ResultadosController.js - About 1 hr to fix

          Function show has 44 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                    show: function(callback) {
                      callback = $.isFunction(callback)
                        ? callback
                        : function(){}
                      ;
          Severity: Minor
          Found in static/components/dimmer.js - About 1 hr to fix

            Function get has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
            Open

                def get(self, request, *args, **kwargs):
                    _md5 = request.GET.get('md5')
                    if _md5:
                        cursor = connection.cursor()
                        cursor.execute(
            Severity: Minor
            Found in openfonacide/views.py - About 1 hr 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

            Function post has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
            Open

                def post(self, request, *args, **kwargs):
                    method = request.POST.get('_method')
                    _query = request.GET.copy()
                    print request.REQUEST.__str__();
                    print _query;
            Severity: Minor
            Found in openfonacide/views.py - About 1 hr 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

            Function generar_query_ubicaciones has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
            Open

            def generar_query_ubicaciones(ubicaciones, tabla_prioridad):
                query = ''
                count = 0
                if type(ubicaciones) != list:
                    return query
            Severity: Minor
            Found in openfonacide/resumen.py - About 1 hr 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

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

                      positions: function() {
                        var
                          window = {
                            height: $window.height()
                          },
            Severity: Minor
            Found in static/components/sticky.js - About 1 hr to fix

              Function brushSymbol has 42 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      brushSymbol : function (ctx, style) {
                          var y = style.y + style.height / 4;
                          ctx.save();
              
                          var chainPoint = style.chainPoint;
              Severity: Minor
              Found in static/js/dncp/util/shape/Chain.js - About 1 hr to fix

                Function var has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    'var' : 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 std has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      std : 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 standard has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        standard: function(response) {
                          var
                            html = ''
                          ;
                          if(response.results !== undefined) {
                    Severity: Minor
                    Found in static/components/search.js - About 1 hr to fix

                      Function selectValues has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                                selectValues: function() {
                                  var
                                    select = {}
                                  ;
                                  select.values = (settings.sortSelect)
                      Severity: Minor
                      Found in static/components/dropdown.js - About 1 hr to fix

                        Function pushPage has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                pushPage: function(callback) {
                                  var
                                    transition = module.get.transition(),
                                    $transition = (transition == 'safe')
                                      ? $context
                        Severity: Minor
                        Found in static/components/sidebar.js - About 1 hr to fix

                          Function show has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  show: function(callback) {
                                    var
                                      animateMethod = (settings.useLegacy === true)
                                        ? module.legacyPushPage
                                        : module.pushPage
                          Severity: Minor
                          Found in static/components/sidebar.js - About 1 hr to fix

                            Function ptp has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                ptp : 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 buildPath has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      buildPath : function (ctx, style) {
                              
                                          var clockWise = style.clockWise || false;
                              
                                          var path = this._pathProxy;
                              Severity: Minor
                              Found in static/js/dncp/util/shape/Ribbon.js - About 1 hr to fix

                                Function mouseEvents has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                          mouseEvents: function() {
                                            module.verbose('Mouse detected binding mouse events');
                                            if( module.is.searchSelection() ) {
                                              $module
                                                .on('mousedown' + eventNamespace, selector.menu, module.event.menu.activate)
                                Severity: Minor
                                Found in static/components/dropdown.js - About 1 hr to fix

                                  Function pullPage has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          pullPage: function(callback) {
                                            var
                                              transition = module.get.transition(),
                                              $transition = (transition == 'safe')
                                                ? $context
                                  Severity: Minor
                                  Found in static/components/sidebar.js - About 1 hr to fix
                                    Severity
                                    Category
                                    Status
                                    Source
                                    Language