ForestAdmin/toolbelt

View on GitHub
src/services/schema-sender.js

Summary

Maintainability
A
2 hrs
Test Coverage
C
75%

Function SchemaSender has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function SchemaSender(serializedSchema, secret, authenticationToken, oclifExit) {
  /**
   * @function
   * @returns {Promise<number | undefined>}
   */
Severity: Minor
Found in src/services/schema-sender.js - About 1 hr to fix

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

      this.perform = () => {
        const { env, logger } = Context.inject();
    
        return agent
          .post(`${env.FOREST_SERVER_URL}/forest/apimaps`)
    Severity: Minor
    Found in src/services/schema-sender.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status