app/controllers/cohorts_controller.rb
Complex method CohortsController#show (25.0) Open
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,
- Read upRead up
- Exclude checks
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
Open
max_weeks = 8 # TODO: get from params
- Exclude checks