AlexAegis/loreplotter

View on GitHub
src/app/operator/infinite-progress.operator.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function infiniteProgress has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function infiniteProgress<T>(
    onEnter?: (enter: { index: number; count: number; observable: Observable<T> }) => void,
    onProgress?: (progress: { result: T; done: number; total: number; index: number }) => void,
    onFinish?: () => void
): OperatorFunction<Observable<T>, T> {
Severity: Minor
Found in src/app/operator/infinite-progress.operator.ts - About 1 hr to fix

    Function progressOperation has 32 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        return function progressOperation(source: Observable<Observable<T>>): Observable<T> {
            return source.pipe(
                mergeScan((acc, next) => of((acc.index = acc.count++) !== undefined && (acc.observable = next) && acc), {
                    index: 0,
                    count: 0,
    Severity: Minor
    Found in src/app/operator/infinite-progress.operator.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status