bq/composr-core

View on GitHub
src/lib/initCorbelDriver.js

Summary

Maintainability
A
1 hr
Test Coverage

Function initCorbelDriver has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function initCorbelDriver () {
  if (!this.config.credentials.clientId) {
    return Promise.reject('Missing config.credentials.clientId')
  }

Severity: Minor
Found in src/lib/initCorbelDriver.js - About 1 hr to fix

    Avoid too many return statements within this function.
    Open

      return new Promise(function (resolve, reject) {
        try {
          var options = {
            clientId: module.config.credentials.clientId,
            clientSecret: module.config.credentials.clientSecret,
    Severity: Major
    Found in src/lib/initCorbelDriver.js - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status