ashishgkwd/ngx-mat-daterange-picker

View on GitHub

Showing 2 of 3 total issues

Function getOverlayConfig has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  private getOverlayConfig(config: CalendarOverlayConfig): OverlayConfig {
    const positionStrategy = this.overlay
      .position()
      .flexibleConnectedTo(this.hostElemRef)
      .withFlexibleDimensions(false)
Severity: Minor
Found in src/app/modules/ngx-mat-drp/services/calendar-overlay.service.ts - About 1 hr to fix

    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
      Severity
      Category
      Status
      Source
      Language