CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

Avoid deeply nested control flow statements.
Open

                                if (data.end == data.size - 1) {
                                    // finished
                                    _this.end(xhr.status);
                                } else {
                                    // next chunk
Severity: Major
Found in Web.Admin/z-scripts/FileAPI.js - About 45 mins to fix

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

      function shouldSkipReload(to, toParams, from, fromParams, locals, options) {
    Severity: Minor
    Found in Web.Admin/z-scripts/angular-ui-router.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                                          if( !wrapper ){
                                              api.log('[err] FlashAPI.mouseover: js-fileapi-wrapper not found');
                                              return;
                                          }
      Severity: Major
      Found in Web.Admin/z-scripts/FileAPI.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                    if (angular.isDate(val)) {
                                        val = val.toISOString();
                                    }
        Severity: Major
        Found in Web.Admin/z-scripts/ng-file-upload.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                                      if (angular.isString(val)) {
                                          formData.append(key, val);
                                      } else {
                                          if (config.sendObjectsAsJsonBlob && angular.isObject(val)) {
                                              formData.append(key, new Blob([val], {type: 'application/json'}));
          Severity: Major
          Found in Web.Admin/z-scripts/ng-file-upload.js - About 45 mins to fix

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

                var reportController = function ($scope, $http, $q, $location, modalFactory, dataService) {
            Severity: Minor
            Found in Web.Admin/AdminApp/Controllers/controller.reports.js - About 45 mins to fix

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

              function loadGallery(folioGallerydir,targetdiv,album,numperpage,pagenum,fullalbum) {                    
              Severity: Minor
              Found in Web.Admin/2015/foliogallery/foliogallery.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                                        if ( type == 'image' && !current.big ) {
                                                            current.big = current.image;
                                                        }
                Severity: Major
                Found in Web.Admin/2015/js/galleria/galleria-1.4.2.js - About 45 mins to fix

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

                      var scoreEntryController = function ($scope, $http, $q, $location, modalFactory, dataService) {
                  Severity: Minor
                  Found in Web.Admin/AdminApp/Controllers/controller.scoreentry.js - About 45 mins to fix

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

                                    function Metric(name, value, count, min, max, properties) {
                    Severity: Minor
                    Found in Web.Admin/z-scripts/ai.0.15.0-build46802.js - About 45 mins to fix

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

                          var arrivalsController = function ($scope, $http, $q, $location, modalFactory, dataService) {
                      Severity: Minor
                      Found in Web.Admin/AdminApp/Controllers/controller.arrivals.js - About 45 mins to fix

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

                            var participantController = function ($scope, $http, $q, $location, modalFactory, dataService) {
                        Severity: Minor
                        Found in Web.Admin/AdminApp/Controllers/controller.participant.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                                      if (value === undefined) {
                                                          output[field] = "undefined";
                                                      }
                                                      else if (value === null) {
                                                          output[field] = "null";
                          Severity: Major
                          Found in Web.Admin/z-scripts/ai.0.15.0-build46802.js - About 45 mins to fix

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

                                var contingentController = function ($scope, $http, $q, $location, modalFactory, dataService) {
                            Severity: Minor
                            Found in Web.Admin/AdminApp/Controllers/controller.contingent.js - About 45 mins to fix

                              Function schedule has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                              Open

                              function schedule() {
                                  var now = new Date();
                                  var date = now.getDate();
                                  var month = now.getMonth();
                                  var month = month + 1;
                              Severity: Minor
                              Found in Web.Admin/2019/js/schedule.js - About 45 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 trackMetric has 6 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                          AppInsights.prototype.trackMetric = function (name, average, sampleCount, min, max, properties) {
                              Severity: Minor
                              Found in Web.Admin/z-scripts/ai.0.15.0-build46802.js - About 45 mins to fix

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

                                    setHash : function(n, v, e, p, d, s) {
                                Severity: Minor
                                Found in Web.Admin/2014/wordpress/wp-admin/js/utils.dev.js - About 45 mins to fix

                                  Function Methods has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                                  Open

                                  Event.Methods = (function() {
                                    var isButton;
                                  
                                    if (Prototype.Browser.IE) {
                                      var buttonMap = { 0: 1, 1: 4, 2: 2 };
                                  Severity: Minor
                                  Found in Web.Admin/2014/wordpress/wp-includes/js/prototype.js - About 45 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

                                  Avoid deeply nested control flow statements.
                                  Open

                                        if (element.offsetParent == document.body)
                                          if (Element.getStyle(element, 'position') == 'absolute') break;
                                  Severity: Major
                                  Found in Web.Admin/2014/wordpress/wp-includes/js/prototype.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                        if ( typeof elem.getElementsByTagName !== "undefined" ) {
                                                            // handleScript alters the DOM, so use jQuery.merge to ensure snapshot iteration
                                                            jsTags = jQuery.grep( jQuery.merge( [], elem.getElementsByTagName("script") ), handleScript );
                                    
                                                            // Splice the scripts into ret after their former ancestor and advance our index beyond them
                                    Severity: Major
                                    Found in Web.Admin/2014/wordpress/wp-includes/js/jquery/jquery-migrate.js - About 45 mins to fix
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language