OpenHPS/openhps-core

View on GitHub
src/service/MemoryDataService.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function findAll has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public findAll(query?: FilterQuery<T>, options: FindOptions = {}): Promise<T[]> {
        return new Promise<T[]>((resolve) => {
            options.limit = options.limit || this._data.size;
            let data: T[] = [];
            this._data.forEach((object) => {
Severity: Minor
Found in src/service/MemoryDataService.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status