kaosf/conoha

View on GitHub

Showing 3 of 5 total issues

Class Conoha has 35 methods (exceeds 20 allowed). Consider refactoring.
Open

class Conoha
  def self.init!
    load_config!
  end

Severity: Minor
Found in lib/conoha.rb - About 4 hrs to fix

    File conoha.rb has 258 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    require 'conoha/version'
    require 'conoha/util'
    require 'json'
    
    # :nocov:
    Severity: Minor
    Found in lib/conoha.rb - About 2 hrs to fix

      Method image_tag_dictionary has 48 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      def image_tag_dictionary(os)
        dictionary = {
          'ubuntu'   => 'vmi-ubuntu-16.04-amd64-unified', # Ubuntu 16.04 amd64
          'ubuntu16' => 'vmi-ubuntu-16.04-amd64-unified', # Ubuntu 16.04 amd64
          'ubuntu14' => 'vmi-ubuntu-14.04-amd64-unified', # Ubuntu 14.04 amd64
      Severity: Minor
      Found in lib/conoha/util.rb - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language