beevelop/corci-monitor

View on GitHub

Showing 374 of 374 total issues

Function 42 has a Cognitive Complexity of 53 (exceeds 5 allowed). Consider refactoring.
Open

},{}],42:[function(require,module,exports){
(function (global){

/*
 * Module requirements.
Severity: Minor
Found in www/js/bundle.js - About 1 day 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

Identical blocks of code found in 2 locations. Consider refactoring.
Open

function BuildVM(build) {
    this.conf = build && build.conf;
    this.name = observable();
    this.id = build && build.id;
    this.platforms = observableArray();
Severity: Major
Found in www/js/bundle.js and 1 other location - About 1 day to fix
www/js/index.js on lines 298..312

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 198.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Identical blocks of code found in 2 locations. Consider refactoring.
Open

function BuildVM(build) {
    this.conf = build && build.conf;
    this.name = observable();
    this.id = build && build.id;
    this.platforms = observableArray();
Severity: Major
Found in www/js/index.js and 1 other location - About 1 day to fix
www/js/bundle.js on lines 13236..13250

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 198.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Function 24 has 198 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{"./polling":25,"component-inherit":28}],24:[function(require,module,exports){
(function (global){
/**
 * Module requirements.
 */
Severity: Major
Found in www/js/bundle.js - About 7 hrs to fix

    Function 14 has 198 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    },{}],14:[function(require,module,exports){
    
    /**
     * Module dependencies.
     */
    Severity: Major
    Found in www/js/bundle.js - About 7 hrs to fix

      `` has 55 functions (exceeds 20 allowed). Consider refactoring.
      Open

      (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
      module.exports = Msg;
      require('./utils');
      var extend = require('extend'),
              concat = Array.prototype.concat,
      Severity: Major
      Found in www/js/bundle.js - About 7 hrs to fix

        Function 35 has 184 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        },{}],35:[function(require,module,exports){
        (function (global){
        /*! http://mths.be/utf8js v2.0.0 by @mathias */
        ;(function(root) {
        
        
        Severity: Major
        Found in www/js/bundle.js - About 7 hrs to fix

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

                      Object.getOwnPropertyNames(creatorResult).forEach(function (name) {
                          var f = creatorResult[name];
                          if (typeof f === "function") {
                              intellisense.addEventListener('signaturehelp', function (event) {
                                  if (event.target != f) return;
          Severity: Major
          Found in www/js/bundle.js and 1 other location - About 7 hrs to fix
          www/js/bundle.js on lines 830..844

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 181.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

                      Object.getOwnPropertyNames(creatorResult).forEach(function (name) {
                          var f = creatorResult[name];
                          if (typeof f === "function") {
                              intellisense.addEventListener('signaturehelp', function (event) {
                                  if (event.target != f) return;
          Severity: Major
          Found in www/js/bundle.js and 1 other location - About 7 hrs to fix
          www/js/bundle.js on lines 762..776

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 181.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Function 49 has 179 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          },{"./is-buffer":50,"isarray":52}],49:[function(require,module,exports){
          
          /**
           * Module dependencies.
           */
          Severity: Major
          Found in www/js/bundle.js - About 7 hrs to fix

            Function 15 has a Cognitive Complexity of 44 (exceeds 5 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 6 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 4 has a Cognitive Complexity of 43 (exceeds 5 allowed). Consider refactoring.
            Open

            },{}],4:[function(require,module,exports){
            
            
            
            /*
            Severity: Minor
            Found in www/js/bundle.js - About 6 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 14 has a Cognitive Complexity of 41 (exceeds 5 allowed). Consider refactoring.
            Open

            },{}],14:[function(require,module,exports){
            
            /**
             * Module dependencies.
             */
            Severity: Minor
            Found in www/js/bundle.js - About 6 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 25 has a Cognitive Complexity of 40 (exceeds 5 allowed). Consider refactoring.
            Open

            },{"./polling":25,"component-emitter":17,"component-inherit":28,"debug":9,"xmlhttprequest":27}],25:[function(require,module,exports){
            /**
             * Module dependencies.
             */
            
            
            Severity: Minor
            Found in www/js/bundle.js - About 6 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

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

            if (inBrowser) {
                window.ServerBrowser = ServerBrowser;
                window.ko = ko;
                setInterval(function() {
                    $('[datetime]').each(function() {
            Severity: Major
            Found in www/js/index.js and 1 other location - About 5 hrs to fix
            www/js/bundle.js on lines 12944..12956

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 150.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

            if (inBrowser) {
                window.ServerBrowser = ServerBrowser;
                window.ko = ko;
                setInterval(function() {
                    $('[datetime]').each(function() {
            Severity: Major
            Found in www/js/bundle.js and 1 other location - About 5 hrs to fix
            www/js/index.js on lines 9..21

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 150.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

              $.fn.popover = function (option) {
                return this.each(function () {
                  var $this   = $(this)
                  var data    = $this.data('bs.popover')
                  var options = typeof option == 'object' && option
            Severity: Major
            Found in www/js/bootstrap.js and 1 other location - About 5 hrs to fix
            www/js/bootstrap.js on lines 1399..1409

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 142.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

              $.fn.tooltip = function (option) {
                return this.each(function () {
                  var $this   = $(this)
                  var data    = $this.data('bs.tooltip')
                  var options = typeof option == 'object' && option
            Severity: Major
            Found in www/js/bootstrap.js and 1 other location - About 5 hrs to fix
            www/js/bootstrap.js on lines 1510..1520

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 142.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Function 1 has a Cognitive Complexity of 35 (exceeds 5 allowed). Consider refactoring.
            Open

            (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
            module.exports = Msg;
            require('./utils');
            var extend = require('extend'),
                    concat = Array.prototype.concat,
            Severity: Minor
            Found in www/js/bundle.js - About 5 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 25 has 130 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            },{"./polling":25,"component-emitter":17,"component-inherit":28,"debug":9,"xmlhttprequest":27}],25:[function(require,module,exports){
            /**
             * Module dependencies.
             */
            
            
            Severity: Major
            Found in www/js/bundle.js - About 5 hrs to fix
              Severity
              Category
              Status
              Source
              Language