expertiza/expertiza

View on GitHub
app/helpers/deadline_helper.rb

Summary

Maintainability
A
0 mins
Test Coverage
F
47%

Assignment Branch Condition size for create_topic_deadline is too high. [15.26/15]
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
Severity: Minor
Found in app/helpers/deadline_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

There are no issues that match your filters.

Category
Status