sldblog/rabbitmq-graph

View on GitHub

Showing 2 of 2 total issues

Method application_nodes has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
Open

def application_nodes
applications = {}
topology.each do |route|
applications[route.source_app] ||= Set.new
applications[route.source_app] << 'fillcolor="red"' if route.missing_source?
Severity: Minor
Found in lib/rabbitmq-graph/dot_format.rb - About 45 mins to fix

Method topology has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

def topology
all_publishers = discover_routing_keys
all_consumers = discover_queues_and_consumers
queue_names = all_publishers.keys | all_consumers.keys
 
 
Severity: Minor
Found in lib/rabbitmq-graph/discover.rb - About 25 mins to fix
Severity
Category
Status
Source
Language