cvut/fittable

View on GitHub
src/components/Timetable.jsx

Summary

Maintainability
A
3 hrs
Test Coverage

Function render has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  render () {
    const layout = isScreenLarge(this.props.screenSize) ? this.props.layout : 'vertical'
    const dayCount = (this.props.days7 || isScreenSmall(this.props.screenSize) ? 7 : 5)

    const timeline = createTimeline(this.props.grid)
Severity: Major
Found in src/components/Timetable.jsx - About 2 hrs to fix

    Function createDayEvents has 33 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function createDayEvents (props, animationDirection, events) {
      // warn: mutates the given value!
      const hideFilteredEvent = (event) => {
        if (!props.displayFilter[event.type]) {
          event._appear = 'hide'
    Severity: Minor
    Found in src/components/Timetable.jsx - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status