MitocGroup/deep-framework

View on GitHub

Showing 114 of 117 total issues

File Request.js has 618 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
 * Created by AlexanderC on 6/10/15.
 */

'use strict';
Severity: Major
Found in src/deep-resource/lib/Resource/Request.js - About 1 day to fix

    Request has 59 functions (exceeds 20 allowed). Consider refactoring.
    Open

    export class Request {
      /**
       * @param {Action} action
       * @param {Object} payload
       * @param {String} method
    Severity: Major
    Found in src/deep-resource/lib/Resource/Request.js - About 1 day to fix

      Function methods has 193 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        get methods() {
          let _this = this;
      
          return {
            
      Severity: Major
      Found in src/deep-db/lib/Vogels/ExtendModel.js - About 7 hrs to fix

        Function EXTEND_OBJECT has 188 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          get EXTEND_OBJECT() {
            let extendObject = {
              bucket: 'relative_fs',
              path: '',
              s3: {}, // @todo: mock `AWS.S3()`
        Severity: Major
        Found in src/deep-fs/lib/Local/S3FSRelativeFSExtender.js - About 7 hrs to fix

          Kernel has 51 functions (exceeds 20 allowed). Consider refactoring.
          Open

          export class Kernel {
            /**
             * @param {Array} deepServices
             * @param {String} context
             */
          Severity: Major
          Found in src/deep-kernel/lib/Kernel.js - About 7 hrs to fix

            Function __deepRequireBrowser__ has a Cognitive Complexity of 38 (exceeds 5 allowed). Consider refactoring.
            Open

            window.__deepRequireBrowser__ = window.__deepRequireBrowser__ || (function (document, undefined) {
              // Each module has the following properties (shorted to one letter to aid compression)
              // - g: booleany, loadinG, truthy if this module has been requested for loading
              //      before. Used to prevent the same module being loaded twice
              // - l: string, Location, the url location of this module
            Severity: Minor
            Found in src/deep-core/lib/Generic/require1k.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

            File Token.js has 384 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            /**
             * Created by mgoria on 6/23/15.
             */
            
            'use strict';
            Severity: Minor
            Found in src/deep-security/lib/Token.js - About 5 hrs to fix

              File Kernel.js has 383 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              /**
               * Created by mgoria on 5/26/15.
               */
              
              /*eslint no-proto: 0*/
              Severity: Minor
              Found in src/deep-kernel/lib/Kernel.js - About 5 hrs to fix

                Token has 38 functions (exceeds 20 allowed). Consider refactoring.
                Open

                export class Token {
                  /**
                   * @returns {number}
                   */
                  static get MAX_RETRIES() {
                Severity: Minor
                Found in src/deep-security/lib/Token.js - About 5 hrs to fix

                  File ExtendModel.js has 363 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  /**
                   * Created by Stefan Hariton on 6/26/15.
                   */
                  
                  'use strict';
                  Severity: Minor
                  Found in src/deep-db/lib/Vogels/ExtendModel.js - About 4 hrs to fix

                    DB has 32 functions (exceeds 20 allowed). Consider refactoring.
                    Open

                    export class DB extends Kernel.ContainerAware {
                      /**
                       * @param {Array} models
                       * @param {Object} tablesNames
                       * @param {Boolean} forcePartitionField
                    Severity: Minor
                    Found in src/deep-db/lib/DB.js - About 4 hrs to fix

                      Log has 32 functions (exceeds 20 allowed). Consider refactoring.
                      Open

                      export class Log extends Kernel.ContainerAware {
                        /**
                         * @param {Object} drivers
                         */
                        constructor(drivers = {}) {
                      Severity: Minor
                      Found in src/deep-log/lib/Log.js - About 4 hrs to fix

                        Function __deepRequireBrowser__ has 99 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        window.__deepRequireBrowser__ = window.__deepRequireBrowser__ || (function (document, undefined) {
                          // Each module has the following properties (shorted to one letter to aid compression)
                          // - g: booleany, loadinG, truthy if this module has been requested for loading
                          //      before. Used to prevent the same module being loaded twice
                          // - l: string, Location, the url location of this module
                        Severity: Major
                        Found in src/deep-core/lib/Generic/require1k.js - About 3 hrs to fix

                          Function methods has a Cognitive Complexity of 26 (exceeds 5 allowed). Consider refactoring.
                          Open

                            get methods() {
                              let _this = this;
                          
                              return {
                                
                          Severity: Minor
                          Found in src/deep-db/lib/Vogels/ExtendModel.js - About 3 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 _parseLambda has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring.
                          Open

                            _parseLambda() {
                              this._parseExternal();
                          
                              // check if any Lambda response available
                              if (this._data) {
                          Severity: Minor
                          Found in src/deep-resource/lib/Resource/SuperagentResponse.js - About 3 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 getFolder has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring.
                          Open

                            getFolder(name, msIdentifier = null) {
                              if (FS.FOLDERS.indexOf(name) === -1) {
                                throw new UnknownFolderException(name, FS.FOLDERS);
                              }
                          
                          
                          Severity: Minor
                          Found in src/deep-fs/lib/FS.js - About 3 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

                          Action has 29 functions (exceeds 20 allowed). Consider refactoring.
                          Open

                          export class Action {
                            /**
                             * @param {Instance} resource
                             * @param {String} name
                             * @param {String} type
                          Severity: Minor
                          Found in src/deep-resource/lib/Resource/Action.js - About 3 hrs to fix

                            Service has 29 functions (exceeds 20 allowed). Consider refactoring.
                            Open

                            export class Service {
                              /**
                               * @returns {String}
                               */
                              static get ANY() {
                            Severity: Minor
                            Found in src/deep-core/lib/AWS/Service.js - About 3 hrs to fix

                              Runtime has 27 functions (exceeds 20 allowed). Consider refactoring.
                              Open

                              export class Runtime extends Interface {
                                /**
                                 * @param {Object} kernel
                                 */
                                constructor(kernel) {
                              Severity: Minor
                              Found in src/deep-core/lib/AWS/Lambda/Runtime.js - About 3 hrs to fix

                                File DB.js has 298 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                /**
                                 * Created by AlexanderC on 6/15/15.
                                 */
                                
                                'use strict';
                                Severity: Minor
                                Found in src/deep-db/lib/DB.js - About 3 hrs to fix
                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language