ashishgkwd/ngx-mat-daterange-picker

View on GitHub
src/app/app.component.ts

Summary

Maintainability
A
1 hr
Test Coverage

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

  setupPresets() {
    const backDate = numOfDays => {
      // tslint:disable no-shadowed-variable
      const today = new Date();
      return new Date(today.setDate(today.getDate() - numOfDays));
Severity: Minor
Found in src/app/app.component.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status