stephancom/quiply-rails

View on GitHub
app/controllers/cohorts_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage

Complex method CohortsController#show (25.0)
Open

  def show
    max_weeks = 8 # TODO: get from params
    @rows = User.group_by_week(:created_at).count.map { |(week, count)|
      timespan = week..(week + 1.week)
      { timespan: timespan, count: count,
Severity: Minor
Found in app/controllers/cohorts_controller.rb by flog

Flog calculates the ABC score for methods. The ABC score is based on assignments, branches (method calls), and conditions.

You can read more about ABC metrics or the flog tool

TODO found
Open

    max_weeks = 8 # TODO: get from params
Severity: Minor
Found in app/controllers/cohorts_controller.rb by fixme

There are no issues that match your filters.

Category
Status