cloudfoundry/cloud_controller_ng

View on GitHub
app/models/runtime/organization.rb

Summary

Maintainability
C
7 hrs
Test Coverage

Class Organization has 38 methods (exceeds 20 allowed). Consider refactoring.
Open

  class Organization < Sequel::Model
    ORG_NAME_REGEX = /\A[[:alnum:][:punct:][:print:]]+\Z/
    ACTIVE = 'active'.freeze
    SUSPENDED = 'suspended'.freeze
    ORG_STATUS_VALUES = [ACTIVE, SUSPENDED].freeze
Severity: Minor
Found in app/models/runtime/organization.rb - About 5 hrs to fix

    File organization.rb has 262 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    require 'models/helpers/process_types'
    
    module VCAP::CloudController
      class Organization < Sequel::Model
        ORG_NAME_REGEX = /\A[[:alnum:][:punct:][:print:]]+\Z/
    Severity: Minor
    Found in app/models/runtime/organization.rb - About 2 hrs to fix

      TODO found
      Open

            # TODO: Change this to use add_association_dependencies when v2 is removed
      Severity: Minor
      Found in app/models/runtime/organization.rb by fixme

      There are no issues that match your filters.

      Category
      Status