diaspora-orm/diaspora

View on GitHub
src/entities/entity.ts

Summary

Maintainability
C
7 hrs
Test Coverage

File entity.ts has 339 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import { keys, reduce, isNil, cloneDeep, difference, forEach, castArray, isUndefined, isNull, defaults, chain, isEqual, mapValues, isObject, isString, isInteger, slice, concat, uniq, reject, transform, isEmpty, without, values } from 'lodash';
import { SequentialEvent } from 'sequential-event';

import { Adapter } from '../adapters';
import AAdapterEntity = Adapter.Base.AAdapterEntity;
Severity: Minor
Found in src/entities/entity.ts - About 4 hrs to fix

Entity has 29 functions (exceeds 20 allowed). Consider refactoring.
Open

export abstract class Entity<TEntity extends IEntityAttributes> extends SequentialEvent {
    public get attributes() {
        return this.getAttributes();
    }
    
Severity: Minor
Found in src/entities/entity.ts - About 3 hrs to fix

There are no issues that match your filters.

Category
Status