cloudfoundry/cloud_controller_ng

View on GitHub
app/presenters/v3/process_presenter.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method to_hash has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        def to_hash
          health_check_data = { timeout: process.health_check_timeout, invocation_timeout: process.health_check_invocation_timeout, interval: process.health_check_interval }
          health_check_data[:endpoint] = process.health_check_http_endpoint if process.health_check_type == HealthCheckTypes::HTTP

          readiness_health_check_data = { invocation_timeout: process.readiness_health_check_invocation_timeout, interval: process.readiness_health_check_interval }
Severity: Minor
Found in app/presenters/v3/process_presenter.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status