dragonchain/dragonchain-sdk-javascript

View on GitHub

Showing 4 of 40 total issues

File DragonchainClient.ts has 751 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
 * Copyright 2020 Dragonchain, Inc. or its affiliates. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
Severity: Major
Found in src/services/dragonchain-client/DragonchainClient.ts - About 1 day to fix

    DragonchainClient has 57 functions (exceeds 20 allowed). Consider refactoring.
    Open

    export class DragonchainClient {
      /**
       * @hidden
       */
      private endpoint: string;
    Severity: Major
    Found in src/services/dragonchain-client/DragonchainClient.ts - About 1 day to fix

      File DragonchainClientInterfaces.ts has 438 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /**
       * Copyright 2020 Dragonchain, Inc. or its affiliates. All Rights Reserved.
       *
       * Licensed under the Apache License, Version 2.0 (the "License");
       * you may not use this file except in compliance with the License.
      Severity: Minor
      Found in src/interfaces/DragonchainClientInterfaces.ts - About 6 hrs to fix

        Avoid deeply nested control flow statements.
        Open

                  if ((customIndexField.options as CustomNumberFieldOptions).sortable !== undefined) optionsBody.sortable = (customIndexField.options as CustomNumberFieldOptions).sortable;
        Severity: Major
        Found in src/services/dragonchain-client/DragonchainClient.ts - About 45 mins to fix
          Severity
          Category
          Status
          Source
          Language