Kinvey/js-sdk

View on GitHub
packages/js-sdk/src/aggregation.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function process has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  process(docs: any = []) {
    // eslint-disable-next-line no-new-func
    const reduceFn = new Function('doc', 'out', this.reduceFn.replace(/function[\s\S]*?\([\s\S]*?\)/, ''));
    let filteredDocs = docs;

Severity: Minor
Found in packages/js-sdk/src/aggregation.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status