RackHD/on-core

View on GitHub
lib/services/waterline.js

Summary

Maintainability
C
7 hrs
Test Coverage

Function WaterlineServiceFactory has 97 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function WaterlineServiceFactory(
    Promise,
    configuration,
    assert,
    Waterline,
Severity: Major
Found in lib/services/waterline.js - About 3 hrs to fix

    Function initService has 58 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        WaterlineService.prototype.initService = function() {
            var self = this;
    
            return new Promise(function (resolve, reject) {
                var dbTypes = [
    Severity: Major
    Found in lib/services/waterline.js - About 2 hrs to fix

      Function WaterlineServiceFactory has 8 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          Promise,
          configuration,
          assert,
          Waterline,
          MongoAdapter,
      Severity: Major
      Found in lib/services/waterline.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status