lib/trema/controller.rb

Summary

Maintainability
A
3 hrs
Test Coverage

Class Controller has 22 methods (exceeds 20 allowed). Consider refactoring.
Open

  class Controller
    # Pio::FlowMod.new argument
    class FlowModAddOption
      def initialize(user_options)
        @user_options = user_options
Severity: Minor
Found in lib/trema/controller.rb - About 2 hrs to fix

Method handle_openflow_message has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    def handle_openflow_message(datapath_id)
      begin
        message = SWITCH.fetch(datapath_id).read
      rescue KeyError
        logger.debug "Switch #{datapath_id} is disconnected."
Severity: Minor
Found in lib/trema/controller.rb - About 1 hr to fix

There are no issues that match your filters.

Category
Status