ignatiusreza/activejob-trackable

View on GitHub
lib/activejob/trackable/core.rb

Summary

Maintainability
A
0 mins
Test Coverage

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.

There are no issues that match your filters.

Category
Status