cloudfoundry/cloud_controller_ng

View on GitHub
app/actions/revision_create.rb

Summary

Maintainability
A
1 hr
Test Coverage

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

      def create(app:, droplet_guid:, environment_variables:, description:, commands_by_process_type:, user_audit_info:)
        RevisionModel.db.transaction do
          next_version = calculate_next_version(app)

          if (existing_revision_for_version = RevisionModel.find(app: app, version: next_version))
Severity: Minor
Found in app/actions/revision_create.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status