valor-software/angular2-bootstrap

View on GitHub
src/chronos/duration/bubble.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function bubble has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function bubble(dur: Duration): Duration {
  let milliseconds = dur._milliseconds;
  let days = dur._days;
  let months = dur._months;
  const data = dur._data;
Severity: Minor
Found in src/chronos/duration/bubble.ts - About 1 hr to fix

    Consider simplifying this complex logical expression.
    Open

      if (!((milliseconds >= 0 && days >= 0 && months >= 0) ||
          (milliseconds <= 0 && days <= 0 && months <= 0))) {
        milliseconds += absCeil(monthsToDays(months) + days) * 864e5;
        days = 0;
        months = 0;
    Severity: Major
    Found in src/chronos/duration/bubble.ts - About 40 mins to fix

      There are no issues that match your filters.

      Category
      Status