micro-toolkit/api-generator-js

View on GitHub
lib/metadata.js

Summary

Maintainability
A
1 hr
Test Coverage

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

function load(version, modelName, metadata){
  log.trace('Loading Model: version \'%s\' model \'%s\' metadata %j',
    version, modelName, metadata);

  // clone the initial dictionary before start changing it
Severity: Minor
Found in lib/metadata.js - About 1 hr to fix

    Avoid too many return statements within this function.
    Open

      return null;
    Severity: Major
    Found in lib/metadata.js - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status