cloudfoundry/cloud_controller_ng

View on GitHub
spec/support/bootstrap/fake_model_tables.rb

Summary

Maintainability
B
6 hrs
Test Coverage

Method tables_for_model_controller_spec has 55 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def tables_for_model_controller_spec
    db.create_table :test_models do
      primary_key :id
      String :guid
      String :unique_value
Severity: Major
Found in spec/support/bootstrap/fake_model_tables.rb - About 2 hrs to fix

    Method tables_for_query_spec has 46 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      def tables_for_query_spec
        db.create_table :authors do
          primary_key :id
    
          Integer :num_val
    Severity: Minor
    Found in spec/support/bootstrap/fake_model_tables.rb - About 1 hr to fix

      Method tables_for_vcap_relations_spec has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        def tables_for_vcap_relations_spec
          db.create_table :owners do
            primary_key :id
            String :guid, null: false, index: true
          end
      Severity: Minor
      Found in spec/support/bootstrap/fake_model_tables.rb - About 1 hr to fix

        Method tables_for_sequel_case_insensitive_string_monkeypatch has 28 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          def tables_for_sequel_case_insensitive_string_monkeypatch
            db.create_table :unique_str_defaults do
              primary_key :id
              String :str, unique: true
            end
        Severity: Minor
        Found in spec/support/bootstrap/fake_model_tables.rb - About 1 hr to fix

          There are no issues that match your filters.

          Category
          Status