lib/radar/base.rb
Complex method Radar::Base#fetch (21.7) Open
Open
def fetch(start_time = Time.now)
event_ids = []
begin
next_events.each do |event|
next if event[:time] && event[:time] < start_time
- Read upRead up
- Exclude checks
Flog calculates the ABC score for methods. The ABC score is based on assignments, branches (method calls), and conditions.
You can read more about ABC metrics or the flog tool
Complex method Radar::Base#update_event (21.2) Open
Open
def update_event(event)
entry = @radar_setting.entries.find_or_create_by(entry_id: event[:id].to_s)
if (entry.entry_date != event[:time] ||
entry.previous_confirmed_content != event.except(:id, :time))
- Read upRead up
- Exclude checks
Flog calculates the ABC score for methods. The ABC score is based on assignments, branches (method calls), and conditions.
You can read more about ABC metrics or the flog tool