denali-js/core

View on GitHub
lib/data/model.ts

Summary

Maintainability
B
4 hrs
Test Coverage

Model has 23 functions (exceeds 20 allowed). Consider refactoring.
Open

export default class Model extends DenaliObject {

  /**
   * Marks the Model as an abstract base model, so ORM adapters can know not to
   * create tables or other supporting infrastructure.
Severity: Minor
Found in lib/data/model.ts - About 2 hrs to fix

    Function _augmentWithSchemaAccessors has 44 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      private static _augmentWithSchemaAccessors() {
        if ((<any>this.prototype)[augmentedWithAccessors]) {
          return;
        }
        (<any>this.prototype)[augmentedWithAccessors] = true;
    Severity: Minor
    Found in lib/data/model.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status