beevelop/corci-monitor

View on GitHub

Showing 256 of 374 total issues

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

function ServerBrowser(conf) {
    this.conf = conf;
    this.logs = observableArray([]);
    this.agents = observableArray([]);
    this.builds = observableArray([]);
Severity: Minor
Found in www/js/index.js - About 1 hr to fix

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

        'onStatus': function(status) {
            if (status) {
                status.agents = status.agents || [];
                this.logs((status.logs || []).map(function(log) {
                    return new Msg(log);
    Severity: Minor
    Found in www/js/index.js - About 1 hr to fix

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

        Carousel.prototype.slide = function (type, next) {
          var $active   = this.$element.find('.item.active')
          var $next     = next || $active[type]()
          var isCycling = this.interval
          var direction = type == 'next' ? 'left' : 'right'
      Severity: Minor
      Found in www/js/bootstrap.js - About 1 hr to fix

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

            'onStatus': function(status) {
                if (status) {
                    status.agents = status.agents || [];
                    this.logs((status.logs || []).map(function(log) {
                        return new Msg(log);
        Severity: Minor
        Found in www/js/bundle.js - About 1 hr to fix

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

          function ServerBrowser(conf) {
              this.conf = conf;
              this.logs = observableArray([]);
              this.agents = observableArray([]);
              this.builds = observableArray([]);
          Severity: Minor
          Found in www/js/bundle.js - About 1 hr to fix

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

            function ServerBrowser(conf) {
                this.conf = conf;
                this.logs = observableArray([]);
                this.agents = observableArray([]);
                this.builds = observableArray([]);
            Severity: Minor
            Found in www/js/index.js - 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 connect has 43 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            Manager.prototype.connect = function(fn){
              debug('readyState %s', this.readyState);
              if (~this.readyState.indexOf('open')) return this;
            
              debug('opening %s', this.uri);
            Severity: Minor
            Found in www/js/bundle.js - About 1 hr to fix

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

                  target.cacheDiffForKnownOperation = function(rawArray, operationName, args) {
                      // Only run if we're currently tracking changes for this observable array
                      // and there aren't any pending deferred notifications.
                      if (!trackingChanges || pendingNotifications) {
                          return;
              Severity: Minor
              Found in www/js/bundle.js - About 1 hr to fix

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

                },{}],33:[function(require,module,exports){
                /*
                 * base64-arraybuffer
                 * https://github.com/niklasvh/base64-arraybuffer
                 *
                Severity: Minor
                Found in www/js/bundle.js - About 1 hr to fix

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

                  },{"./on":13,"component-bind":16,"component-emitter":17,"debug":9,"has-binary":42,"socket.io-parser":49,"to-array":47}],15:[function(require,module,exports){
                  (function (global){
                  
                  /**
                   * Module dependencies.
                  Severity: Minor
                  Found in www/js/bundle.js - About 1 hr to fix

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

                    exports.decodePayloadAsBinary = function (data, binaryType, callback) {
                      if (typeof binaryType === 'function') {
                        callback = binaryType;
                        binaryType = null;
                      }
                    Severity: Minor
                    Found in www/js/bundle.js - About 1 hr to fix

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

                          function parseObjectLiteral(objectLiteralString) {
                              // Trim leading and trailing spaces from the string
                              var str = ko.utils.stringTrim(objectLiteralString);
                      
                              // Trim braces '{' surrounding the whole object literal
                      Severity: Minor
                      Found in www/js/bundle.js - About 1 hr to fix

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

                        ko.utils.domData = new (function () {
                            var uniqueId = 0;
                            var dataStoreKeyExpandoPropertyName = "__ko__" + (new Date).getTime();
                            var dataStore = {};
                        
                        
                        Severity: Minor
                        Found in www/js/bundle.js - About 1 hr to fix

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

                          ko.computedContext = ko.dependencyDetection = (function () {
                              var outerFrames = [],
                                  currentFrame,
                                  lastId = 0;
                          
                          
                          Severity: Minor
                          Found in www/js/bundle.js - About 1 hr to fix

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

                            exports.decodePayload = function (data, binaryType, callback) {
                              if (typeof data != 'string') {
                                return exports.decodePayloadAsBinary(data, binaryType, callback);
                              }
                            
                            
                            Severity: Minor
                            Found in www/js/bundle.js - About 1 hr to fix

                              Function 32 has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                              Open

                              },{}],32:[function(require,module,exports){
                              /**
                               * An abstraction for slicing an arraybuffer even when
                               * ArrayBuffer.prototype.slice is not supported
                               *
                              Severity: Minor
                              Found in www/js/bundle.js - 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 update has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                              Open

                                  update: function(build) {
                                      if (build && build.conf) {
                                          var conf = build.conf;
                                          this.conf = conf;
                                          this.name(conf.name);
                              Severity: Minor
                              Found in www/js/index.js - 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 init has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      'init': function(element, valueAccessor, ignored1, ignored2, bindingContext) {
                                          var currentViewModel,
                                              currentLoadingOperationId,
                                              disposeAssociatedComponentViewModel = function () {
                                                  var currentViewModelDispose = currentViewModel && currentViewModel['dispose'];
                              Severity: Minor
                              Found in www/js/bundle.js - About 1 hr to fix

                                Function applyPlacement has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                  Tooltip.prototype.applyPlacement = function (offset, placement) {
                                    var replace
                                    var $tip   = this.tip()
                                    var width  = $tip[0].offsetWidth
                                    var height = $tip[0].offsetHeight
                                Severity: Minor
                                Found in www/js/bootstrap.js - About 1 hr to fix

                                  Function writeValue has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          writeValue: function(element, value, allowUnset) {
                                              switch (ko.utils.tagNameLower(element)) {
                                                  case 'option':
                                                      switch(typeof value) {
                                                          case "string":
                                  Severity: Minor
                                  Found in www/js/bundle.js - About 1 hr to fix
                                    Severity
                                    Category
                                    Status
                                    Source
                                    Language