raveljs/ravel

View on GitHub
lib/core/module.js

Summary

Maintainability
B
4 hrs
Test Coverage
A
100%

Function exports has 86 lines of code (exceeds 30 allowed). Consider refactoring.
Open

module.exports = function (Ravel) {
  /**
   * Retrieve an initialized Ravel `Module` by its injection name, after `app.init()`.
   * Useful for [testing](#testing-ravel-applications).
   *
Severity: Major
Found in lib/core/module.js - About 3 hrs to fix

    Function initModule has 44 lines of code (exceeds 30 allowed). Consider refactoring.
    Open

    async function initModule (ravelInstance) {
      const self = this;
      const name = Metadata.getClassMetaValue(Object.getPrototypeOf(self), '@role', 'name');
      // run @postinject handlers
      const postInjects = Metadata.getClassMeta(Object.getPrototypeOf(self), '@postinject', Object.create(null));
    Severity: Minor
    Found in lib/core/module.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status