nemesiscodex/openfonacide

View on GitHub

Showing 970 of 970 total issues

Function nextPosition has 53 lines of code (exceeds 25 allowed). Consider refactoring.
Open

          nextPosition: function(position) {
            var
              positions          = position.split(' '),
              verticalPosition   = positions[0],
              horizontalPosition = positions[1],
Severity: Major
Found in static/components/popup.js - About 2 hrs to fix

    Function do_match has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
    Open

        def do_match(self):
            inst = self.institucion_manager.all()
            planes = self.planificacion_manager.filter(etiquetas__icontains="fonacide")
            # Cast a List, para tratar con el comportamiento lazy del filter y para operar cachear los resultados
            planes = list((planes.values('id', 'anio', 'id_llamado', 'nombre_licitacion', 'convocante')))
    Severity: Minor
    Found in openfonacide/matcher.py - About 2 hrs to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Function rectangle has 52 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function rectangle(zr, oldShape, newShape, duration, easing) {
            var newShapeStyle = newShape.style;
            if (!oldShape) {        // add
                oldShape = {
                    position : newShape.position,
    Severity: Major
    Found in static/js/dncp/util/ecAnimation.js - About 2 hrs to fix

      Function bothLocked has 52 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function bothLocked(min, max, section) {
          var trySecs     = section ? [section] : custSecs;
          var span        = max - min;
          if (span       === 0) {                                 // 最大最小值都锁定到同一个值上,认为锁定失败
              max         = expNum(max, 3);                       // 3 位精度向上近似
      Severity: Major
      Found in static/js/dncp/util/smartSteps.js - About 2 hrs to fix

        Function invoke has 52 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                invoke: function(query, passedArguments, context) {
                  var
                    object = instance,
                    maxDepth,
                    found,
        Severity: Major
        Found in static/components/nag.js - About 2 hrs to fix

          Function invoke has 52 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  invoke: function(query, passedArguments, context) {
                    var
                      object = instance,
                      maxDepth,
                      found,
          Severity: Major
          Found in static/components/sidebar.js - About 2 hrs to fix

            Function invoke has 52 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    invoke: function(query, passedArguments, context) {
                      var
                        object = instance,
                        maxDepth,
                        found,
            Severity: Major
            Found in static/components/dimmer.js - About 2 hrs to fix

              Function invoke has 52 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      invoke: function(query, passedArguments, context) {
                        var
                          object = instance,
                          maxDepth,
                          found,
              Severity: Major
              Found in static/components/video.js - About 2 hrs to fix

                Function invoke has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        invoke: function(query, passedArguments, context) {
                          var
                            object = instance,
                            maxDepth,
                            found,
                Severity: Major
                Found in static/components/visibility.js - About 2 hrs to fix

                  Function invoke has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          invoke: function(query, passedArguments, context) {
                            var
                              object = instance,
                              maxDepth,
                              found,
                  Severity: Major
                  Found in static/components/api.js - About 2 hrs to fix

                    Function invoke has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            invoke: function(query, passedArguments, context) {
                              var
                                object = instance,
                                maxDepth,
                                found,
                    Severity: Major
                    Found in static/components/tab.js - About 2 hrs to fix

                      Function invoke has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              invoke: function(query, passedArguments, context) {
                                var
                                  object = instance,
                                  maxDepth,
                                  found,
                      Severity: Major
                      Found in static/components/accordion.js - About 2 hrs to fix

                        Function invoke has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            invoke: function(query, passedArguments, context) {
                              var
                                object = instance,
                                maxDepth,
                                found,
                        Severity: Major
                        Found in static/components/site.js - About 2 hrs to fix

                          Function invoke has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  invoke: function(query, passedArguments, context) {
                                    var
                                      object = instance,
                                      maxDepth,
                                      found,
                          Severity: Major
                          Found in static/components/dropdown.js - About 2 hrs to fix

                            Function invoke has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    invoke: function(query, passedArguments, context) {
                                      var
                                        object = instance,
                                        maxDepth,
                                        found,
                            Severity: Major
                            Found in static/components/checkbox.js - About 2 hrs to fix

                              Function invoke has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      invoke: function(query, passedArguments, context) {
                                        var
                                          object = instance,
                                          maxDepth,
                                          found,
                              Severity: Major
                              Found in static/components/state.js - About 2 hrs to fix

                                Function invoke has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        invoke: function(query, passedArguments, context) {
                                          var
                                            object = instance,
                                            maxDepth,
                                            found,
                                Severity: Major
                                Found in static/components/progress.js - About 2 hrs to fix

                                  Function invoke has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          invoke: function(query, passedArguments, context) {
                                            var
                                              object = instance,
                                              maxDepth,
                                              found,
                                  Severity: Major
                                  Found in static/components/popup.js - About 2 hrs to fix

                                    Function invoke has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            invoke: function(query, passedArguments, context) {
                                              var
                                                object = instance,
                                                maxDepth,
                                                found,
                                    Severity: Major
                                    Found in static/components/search.js - About 2 hrs to fix

                                      Function invoke has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              invoke: function(query, passedArguments, context) {
                                                var
                                                  object = instance,
                                                  maxDepth,
                                                  found,
                                      Severity: Major
                                      Found in static/components/modal.js - About 2 hrs to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language