infinum/mobx-collection-store

View on GitHub
src/Collection.ts

Summary

Maintainability
A
3 hrs
Test Coverage

Collection has 21 functions (exceeds 20 allowed). Consider refactoring.
Open

export class Collection implements ICollection {

  /**
   * List of custom model types
   *
Severity: Minor
Found in src/Collection.ts - About 2 hrs to fix

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

      @action public insert(data: Array<object>|object): Array<IModel> {
        const items = [].concat(data)
          .map((item) => {
            const type: IType = item[TYPE_PROP];
            if (!type) {
    Severity: Minor
    Found in src/Collection.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status