ece517-p3/expertiza

View on GitHub
app/helpers/analytic_helper.rb

Summary

Maintainability
A
0 mins
Test Coverage

Assignment Branch Condition size for distribution is too high. [15.3/15]
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|
Severity: Minor
Found in app/helpers/analytic_helper.rb by rubocop

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

  # TODO: implementing normalize for bar chart
Severity: Minor
Found in app/helpers/analytic_helper.rb by fixme

There are no issues that match your filters.

Category
Status