nycJSorg/angular-presentation

View on GitHub

Showing 339 of 887 total issues

File mocha.js has 9059 lines of code (exceeds 250 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;
Severity: Major
Found in libs/code-demos/assets/runner/js/mocha.js - About 3 wks to fix

    Function 43 has a Cognitive Complexity of 674 (exceeds 5 allowed). Consider refactoring.
    Open

          function(require, module, exports) {
            /*!
             * The buffer module from node.js, for the browser.
             *
             * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
    Severity: Minor
    Found in libs/code-demos/assets/runner/js/mocha.js - About 1 wk 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 55 has a Cognitive Complexity of 392 (exceeds 5 allowed). Consider refactoring.
    Open

          function(require, module, exports) {
            (function(process) {
              // Copyright Joyent, Inc. and other Node contributors.
              //
              // Permission is hereby granted, free of charge, to any person obtaining a
    Severity: Minor
    Found in libs/code-demos/assets/runner/js/mocha.js - About 1 wk 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 43 has 1426 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

          function(require, module, exports) {
            /*!
             * The buffer module from node.js, for the browser.
             *
             * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
    Severity: Major
    Found in libs/code-demos/assets/runner/js/mocha.js - About 1 wk to fix

      Function 67 has a Cognitive Complexity of 312 (exceeds 5 allowed). Consider refactoring.
      Open

            function(require, module, exports) {
              /* See LICENSE file for terms of use */
      
              /*
               * Text diff implementation.
      Severity: Minor
      Found in libs/code-demos/assets/runner/js/mocha.js - About 6 days 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 66 has a Cognitive Complexity of 273 (exceeds 5 allowed). Consider refactoring.
      Open

            function(require, module, exports) {
              (function(process, global) {
                // Copyright Joyent, Inc. and other Node contributors.
                //
                // Permission is hereby granted, free of charge, to any person obtaining a
      Severity: Minor
      Found in libs/code-demos/assets/runner/js/mocha.js - About 5 days 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 getWatCompletionItems has 907 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      export function getWatCompletionItems() {
        const keyword = CompletionItemKind.Keyword;
        if (completionItems) {
          return completionItems;
        }
      Severity: Major
      Found in apps/kirjs/src/app/modules/webassembly/monaco-wat.ts - About 4 days to fix

        Function 36 has a Cognitive Complexity of 192 (exceeds 5 allowed). Consider refactoring.
        Open

              function(require, module, exports) {
                (function(process, global) {
                  /**
                   * Module dependencies.
                   */
        Severity: Minor
        Found in libs/code-demos/assets/runner/js/mocha.js - About 3 days 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 39 has a Cognitive Complexity of 176 (exceeds 5 allowed). Consider refactoring.
        Open

              function(require, module, exports) {
                (function(process, Buffer) {
                  /* eslint-env browser */
        
                  /**
        Severity: Minor
        Found in libs/code-demos/assets/runner/js/mocha.js - About 3 days 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

        File monaco-wat.ts has 1254 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        /* Copyright 2018 Mozilla Foundation
         *
         * Permission is hereby granted, free of charge, to any person obtaining a copy
         * of this software and associated documentation files (the 'Software'), to deal
         * in the Software without restriction, including without limitation the rights
        Severity: Major
        Found in apps/kirjs/src/app/modules/webassembly/monaco-wat.ts - About 3 days to fix

          Function 67 has 621 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                function(require, module, exports) {
                  /* See LICENSE file for terms of use */
          
                  /*
                   * Text diff implementation.
          Severity: Major
          Found in libs/code-demos/assets/runner/js/mocha.js - About 3 days to fix

            Function 55 has 600 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                  function(require, module, exports) {
                    (function(process) {
                      // Copyright Joyent, Inc. and other Node contributors.
                      //
                      // Permission is hereby granted, free of charge, to any person obtaining a
            Severity: Major
            Found in libs/code-demos/assets/runner/js/mocha.js - About 3 days to fix

              Function 57 has a Cognitive Complexity of 137 (exceeds 5 allowed). Consider refactoring.
              Open

                    function(require, module, exports) {
                      (function(process) {
                        // Copyright Joyent, Inc. and other Node contributors.
                        //
                        // Permission is hereby granted, free of charge, to any person obtaining a
              Severity: Minor
              Found in libs/code-demos/assets/runner/js/mocha.js - About 2 days 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 66 has 529 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                    function(require, module, exports) {
                      (function(process, global) {
                        // Copyright Joyent, Inc. and other Node contributors.
                        //
                        // Permission is hereby granted, free of charge, to any person obtaining a
              Severity: Major
              Found in libs/code-demos/assets/runner/js/mocha.js - About 2 days to fix

                Function 36 has 518 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                      function(require, module, exports) {
                        (function(process, global) {
                          /**
                           * Module dependencies.
                           */
                Severity: Major
                Found in libs/code-demos/assets/runner/js/mocha.js - About 2 days to fix

                  Function 47 has a Cognitive Complexity of 125 (exceeds 5 allowed). Consider refactoring.
                  Open

                        function(require, module, exports) {
                          // Copyright Joyent, Inc. and other Node contributors.
                          //
                          // Permission is hereby granted, free of charge, to any person obtaining a
                          // copy of this software and associated documentation files (the
                  Severity: Minor
                  Found in libs/code-demos/assets/runner/js/mocha.js - About 2 days 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 39 has 467 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                        function(require, module, exports) {
                          (function(process, Buffer) {
                            /* eslint-env browser */
                  
                            /**
                  Severity: Major
                  Found in libs/code-demos/assets/runner/js/mocha.js - About 2 days to fix

                    Function 17 has a Cognitive Complexity of 102 (exceeds 5 allowed). Consider refactoring.
                    Open

                          function(require, module, exports) {
                            (function(process, global) {
                              /**
                               * Module dependencies.
                               */
                    Severity: Minor
                    Found in libs/code-demos/assets/runner/js/mocha.js - About 2 days 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 35 has a Cognitive Complexity of 101 (exceeds 5 allowed). Consider refactoring.
                    Open

                          function(require, module, exports) {
                            (function(global) {
                              /**
                               * Module dependencies.
                               */
                    Severity: Minor
                    Found in libs/code-demos/assets/runner/js/mocha.js - About 2 days 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 98 (exceeds 5 allowed). Consider refactoring.
                    Open

                          function(require, module, exports) {
                            (function(process, global, __dirname) {
                              /*!
                               * mocha
                               * Copyright(c) 2011 TJ Holowaychuk <tj@vision-media.ca>
                    Severity: Minor
                    Found in libs/code-demos/assets/runner/js/mocha.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

                    Severity
                    Category
                    Status
                    Source
                    Language