valor-software/angular2-bootstrap

View on GitHub
src/datepicker/engine/flag-days-calendar.ts

Summary

Maintainability
A
3 hrs
Test Coverage

Function flagDaysCalendar has 65 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function flagDaysCalendar(
  formattedMonth: DaysCalendarViewModel,
  options: FlagDaysCalendarOptions
): DaysCalendarViewModel {
  formattedMonth.weeks.forEach((week: WeekViewModel, weekIndex: number) => {
Severity: Major
Found in src/datepicker/engine/flag-days-calendar.ts - About 2 hrs to fix

    Consider simplifying this complex logical expression.
    Open

          if (
            day.isOtherMonth !== newDay.isOtherMonth ||
            day.isHovered !== newDay.isHovered ||
            day.isSelected !== newDay.isSelected ||
            day.isSelectionStart !== newDay.isSelectionStart ||
    Severity: Major
    Found in src/datepicker/engine/flag-days-calendar.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status