cyclejs/cycle-core

View on GitHub
time/src/periodic.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function makePeriodic has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function makePeriodic(createOperator: () => OperatorArgs<any>) {
  const {schedule, currentTime} = createOperator();

  return function periodic(period: number): Stream<number> {
    let stopped = false;
Severity: Minor
Found in time/src/periodic.ts - About 1 hr to fix

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

      return function periodic(period: number): Stream<number> {
        let stopped = false;
        let lastEmitTime = 0;
    
        function scheduleNextEvent(
    Severity: Minor
    Found in time/src/periodic.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status