diaspora-orm/diaspora

View on GitHub
src/adapters/base/adapter.ts

Summary

Maintainability
B
4 hrs
Test Coverage

File adapter.ts has 274 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import { pick, assign, isNil, cloneDeep, forOwn, defaults, mapKeys, forEach, isNumber, isDate, chain, isUndefined, Dictionary, invert, first, compact, mapValues } from 'lodash';
import { SequentialEvent } from 'sequential-event';

import { Adapter as _AAdapterEntity } from './entity';
import AAdapterEntity = _AAdapterEntity.Base.AAdapterEntity;
Severity: Minor
Found in src/adapters/base/adapter.ts - About 2 hrs to fix

AAdapter has 22 functions (exceeds 20 allowed). Consider refactoring.
Open

    export abstract class AAdapter<TAdapterEntity extends AAdapterEntity = AAdapterEntity>
    extends SequentialEvent
    implements IDataSourceQuerier<IEntityAttributes, IEntityProperties> {
        public get classEntity() {
            return this._classEntity;
Severity: Minor
Found in src/adapters/base/adapter.ts - About 2 hrs to fix

TODO found
Open

         * @see TODO remapping.
Severity: Minor
Found in src/adapters/base/adapter.ts by fixme

TODO found
Open

         * @see TODO remapping.
Severity: Minor
Found in src/adapters/base/adapter.ts by fixme

There are no issues that match your filters.

Category
Status