app/helpers/analytic_helper.rb
Assignment Branch Condition size for distribution is too high. [15.3/15] Open
Open
def distribution(array, num_intervals, x_min = array.min)
distribution = []
interval_size = ((array.max - x_min).to_f / num_intervals).ceil
intervals = (1..num_intervals).to_a.collect {|val| val * interval_size }
intervals.each do |interval_max|
- Read upRead up
- Exclude checks
This cop checks that the ABC size of methods is not higher than the configured maximum. The ABC size is based on assignments, branches (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric
TODO found Open
Open
# TODO: implementing normalize for bar chart
- Exclude checks