diaspora-orm/diaspora

View on GitHub
src/entities/set.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function persist has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public async persist( sourceName?: string ): Promise<Set<TEntity>> {
        const suffixes = map( this, entity => ( 'orphan' === entity.state ? 'Create' : 'Update' ) );
        const _allEmit = partial( allEmit, this );
        await _allEmit( 'Persist', 'before' );
        await _allEmit( 'Validate', 'before' );
Severity: Minor
Found in src/entities/set.ts - About 1 hr to fix

There are no issues that match your filters.

Category
Status