kyleboe/zoom_rb

View on GitHub

Showing 4 of 4 total issues

Method hash_filter has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
Open

def hash_filter(filter)
# Slicing filters out non-declared keys.
slice(*filter.keys).each do |key, value|
next unless value
next unless key? key
Severity: Minor
Found in lib/zoom/params.rb - About 1 hr to fix

Method find_missing_entries has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
Open

def find_missing_entries(*entries)
entries.flatten.each.with_object([]) do |entry, array|
if entry.is_a?(Hash)
entry.keys.each do |k|
array << k && next if self[k].nil?
Severity: Minor
Found in lib/zoom/params.rb - About 1 hr to fix

Method process_datetime_params! has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

def process_datetime_params!(params)
params.each do |key, value|
case key
when Symbol, String
params[key] = value.is_a?(Time) ? value.strftime('%FT%TZ') : value
Severity: Minor
Found in lib/zoom/utils.rb - About 35 mins to fix

Method filter_required has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

def filter_required(filters)
# Unless value is a hash, filter
filters.each.with_object(self.class.new(except(filters.flatten))) do |filter, params|
case filter
when Symbol, String
Severity: Minor
Found in lib/zoom/params.rb - About 35 mins to fix
Severity
Category
Status
Source
Language