app/helpers/deadline_helper.rb
Assignment Branch Condition size for create_topic_deadline is too high. [15.26/15] Open
Open
def create_topic_deadline(due_date, offset, topic_id)
topic_deadline = TopicDueDate.new
topic_deadline.parent_id = topic_id
topic_deadline.due_at = Time.zone.parse(due_date.due_at.to_s) + offset.to_i
topic_deadline.deadline_type_id = due_date.deadline_type_id
- 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