beevelop/corci-monitor

View on GitHub

Showing 256 of 374 total issues

Consider simplifying this complex logical expression.
Open

      if (autoPlace) {
        var $parent = this.$element.parent()

        var orgPlacement = placement
        var docScroll    = document.documentElement.scrollTop || document.body.scrollTop
Severity: Major
Found in www/js/bootstrap.js - About 40 mins to fix

    Function writeValueToProperty has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

            writeValueToProperty: function(property, allBindings, key, value, checkIfDifferent) {
    Severity: Minor
    Found in www/js/bundle.js - About 35 mins to fix

      Function renderTemplateForEach has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          ko.renderTemplateForEach = function (template, arrayOrObservableArray, options, targetNode, parentBindingContext) {
      Severity: Minor
      Found in www/js/bundle.js - About 35 mins to fix

        Function init has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            'init' : function (element, valueAccessor, allBindings, viewModel, bindingContext) {
        Severity: Minor
        Found in www/js/bundle.js - About 35 mins to fix

          Function update has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

                  'update': function (element, valueAccessor, allBindings, viewModel, bindingContext) {
          Severity: Minor
          Found in www/js/bundle.js - About 35 mins to fix

            Function value has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                    enumerable: false, configurable: true, value: function(timeout, thisArg, arg1, arg2, arg3) {
            Severity: Minor
            Found in www/js/bundle.js - About 35 mins to fix

              Function setDomNodeChildrenFromArrayMapping has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  ko.utils.setDomNodeChildrenFromArrayMapping = function (domNode, array, mapping, options, callbackAfterAddingNodes) {
              Severity: Minor
              Found in www/js/bundle.js - About 35 mins to fix

                Function init has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                        'init': function(element, valueAccessor, allBindings, viewModel, bindingContext) {
                Severity: Minor
                Found in www/js/bundle.js - About 35 mins to fix

                  Function init has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      'init': function (element, valueAccessor, allBindings, viewModel, bindingContext) {
                  Severity: Minor
                  Found in www/js/bundle.js - About 35 mins to fix

                    Function compareSmallArrayToBigArray has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        function compareSmallArrayToBigArray(smlArray, bigArray, statusNotInSml, statusNotInBig, options) {
                    Severity: Minor
                    Found in www/js/bundle.js - About 35 mins to fix

                      Function WAssert has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          function WAssert(trueishCondition, message, arg1, arg2, argEtc) {
                      Severity: Minor
                      Found in www/js/bundle.js - About 35 mins to fix

                        Function init has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                                'init': function(element, valueAccessor, ignored1, ignored2, bindingContext) {
                        Severity: Minor
                        Found in www/js/bundle.js - About 35 mins to fix

                          Function init has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              'init': function(element, valueAccessor, allBindings, viewModel, bindingContext) {
                          Severity: Minor
                          Found in www/js/bundle.js - About 35 mins to fix

                            Function value has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                    enumerable: false, configurable: true, value: function(timeout, thisArg, arg1, arg2, arg3) {
                            Severity: Minor
                            Found in www/js/bundle.js - About 35 mins to fix

                              Function renderTemplate has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                  ko.renderTemplate = function (template, dataOrBindingContext, options, targetNodeOrNodeArray, renderMode) {
                              Severity: Minor
                              Found in www/js/bundle.js - About 35 mins to fix

                                Function update has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                    'update': function(element, valueAccessor, allBindings, viewModel, bindingContext) {
                                Severity: Minor
                                Found in www/js/bundle.js - About 35 mins to fix

                                  Function mapNodeAndRefreshWhenChanged has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                      function mapNodeAndRefreshWhenChanged(containerNode, mapping, valueToMap, callbackAfterAddingNodes, index) {
                                  Severity: Minor
                                  Found in www/js/bundle.js - About 35 mins to fix

                                    Function executeTemplate has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                        function executeTemplate(targetNodeOrNodeArray, renderMode, template, bindingContext, options) {
                                    Severity: Minor
                                    Found in www/js/bundle.js - About 35 mins to fix

                                      Function init has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                              'init': function(element, valueAccessor, allBindings, viewModel, bindingContext) {
                                      Severity: Minor
                                      Found in www/js/bundle.js - About 35 mins to fix

                                        Function 21 has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                        Open

                                        },{"./transport":21,"./transports":22,"component-emitter":17,"debug":9,"engine.io-parser":29,"indexof":44,"parsejson":38,"parseqs":39,"parseuri":40}],21:[function(require,module,exports){
                                        /**
                                         * Module dependencies.
                                         */
                                        
                                        
                                        Severity: Minor
                                        Found in www/js/bundle.js - About 35 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