Aam-Digital/ndb-core

View on GitHub
src/app/core/entity/schema/entity-schema.service.spec.ts

Summary

Maintainability
B
4 hrs
Test Coverage

Function testDatatype has 90 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function testDatatype<D extends DefaultDatatype>(
  dataType: D | (new (params: any) => D),
  objectValue,
  databaseValue,
  additionalSchemaFieldConfig?: any,
Severity: Major
Found in src/app/core/entity/schema/entity-schema.service.spec.ts - About 3 hrs to fix

    Function testDatatype has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

      dataType: D | (new (params: any) => D),
      objectValue,
      databaseValue,
      additionalSchemaFieldConfig?: any,
      additionalProviders?: any[],
    Severity: Minor
    Found in src/app/core/entity/schema/entity-schema.service.spec.ts - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status