digitalfabrik/integreat-app

View on GitHub
native/src/utils/DefaultDataContainer.ts

Summary

Maintainability
B
4 hrs
Test Coverage
B
88%

DefaultDataContainer has 26 functions (exceeds 20 allowed). Consider refactoring.
Open

class DefaultDataContainer implements DataContainer {
  _databaseConnector: DatabaseConnector
  caches: CacheType

  constructor() {
Severity: Minor
Found in native/src/utils/DefaultDataContainer.ts - About 3 hrs to fix

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

      constructor() {
        this._databaseConnector = new DatabaseConnector()
        this.caches = {
          pois: new Cache<Array<PoiModel>>(
            this._databaseConnector,
    Severity: Minor
    Found in native/src/utils/DefaultDataContainer.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status