ignatiusreza/activejob-trackable

View on GitHub

Showing 1 of 2 total issues

Assignment Branch Condition size for expires_in is too high. [16.03/15]
Open

        def expires_in
          case trackable_options[:throttled]
          when :daily then (Time.zone.at(scheduled_at).at_end_of_day - Time.current.to_f)
          else trackable_options[:throttled] + (scheduled_at - Time.current.to_f)
          end
Severity: Minor
Found in lib/activejob/trackable/core.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 and https://en.wikipedia.org/wiki/ABC_Software_Metric.

Severity
Category
Status
Source
Language