Showing 1 of 4 total issues
Method deep_merge
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
def deep_merge(hash, other) hash.to_h.merge(other) do |_, orig, new| if orig.respond_to?(:to_hash) && new.respond_to?(:to_hash) deep_merge(orig.to_h, new.to_h) elsif concattable?(orig, new)
- Read upRead up