valor-software/angular2-bootstrap

View on GitHub
src/chronos/utils/start-end-of.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function startOf has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function startOf(date: Date, unit: UnitOfTime, isUTC?: boolean): Date {
  const _date = cloneDate(date);
  // the following switch intentionally omits break keywords
  // to utilize falling through the cases.
  switch (unit) {
Severity: Minor
Found in src/chronos/utils/start-end-of.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status