lancew/DojoList

View on GitHub

Showing 388 of 1,940 total issues

Avoid too many return statements within this function.
Open

            return new MQA.BoundingBox(se.lat, nw.lon, nw.lat, se.lon);
Severity: Major
Found in js/mapstraction.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

                return new BoundingBox(ybox.LatMin, ybox.LonMin, ybox.LatMax, ybox.LonMax);
    Severity: Major
    Found in js/mapstraction.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

          return value;
      Severity: Major
      Found in js/prototype/prototype-1.6.0.3.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                    return Math.round(zoom);
        Severity: Major
        Found in js/mapstraction.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                          return [targetNode];
          Severity: Major
          Found in js/prototype/prototype-1.6.0.3.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                        return new BoundingBox(sw.lat, sw.lon, ne.lat, ne.lon);
            Severity: Major
            Found in js/mapstraction.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                    return (targetNode && Element.descendantOf(targetNode, root)) ? [targetNode] : [];
              Severity: Major
              Found in js/prototype/prototype-1.6.0.3.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                            return new BoundingBox(se.Latitude,nw.Longitude,nw.Latitude,se.Longitude);
                Severity: Major
                Found in js/mapstraction.js - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                          return null;
                  Severity: Major
                  Found in lib/data.model.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                            return null;
                    Severity: Major
                    Found in lib/data.model.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                              return null;
                      Severity: Major
                      Found in lib/data.model.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                          return $messages;
                        Severity: Major
                        Found in lib/limonade.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                      return 'Contact Name: Must be letters a-z or A-Z only';
                          Severity: Major
                          Found in lib/data.model.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                              return $messages;
                            Severity: Major
                            Found in lib/limonade.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                          return 'Contact telephone number: Must be numbers 0-9 only';
                              Severity: Major
                              Found in lib/data.model.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                        return null;
                                Severity: Major
                                Found in lib/data.model.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                          return null;
                                  Severity: Major
                                  Found in lib/data.model.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                return 'Dojo Address: Must be alphanumeric or a comma, or fullstop only';
                                    Severity: Major
                                    Found in lib/data.model.php - About 30 mins to fix

                                      Function getInputs has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                      Open

                                        getInputs: function(form, typeName, name) {
                                          form = $(form);
                                          var inputs = form.getElementsByTagName('input');
                                      
                                          if (!typeName && !name) return $A(inputs).map(Element.extend);
                                      Severity: Minor
                                      Found in js/prototype/prototype-1.6.0.3.js - About 25 mins 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 initialize has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                      Open

                                        initialize: function(request){
                                          this.request = request;
                                          var transport  = this.transport  = request.transport,
                                              readyState = this.readyState = transport.readyState;
                                      
                                      
                                      Severity: Minor
                                      Found in js/prototype/prototype-1.6.0.3.js - About 25 mins 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

                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language