cloudfoundry/cloud_controller_ng

View on GitHub
lib/cloud_controller/rest_controller/object_renderer.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method render_json has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    def render_json(controller, obj, opts)
      inline_relations_depth = opts[:inline_relations_depth] || @default_inline_relations_depth
      if inline_relations_depth > @max_inline_relations_depth
        raise CloudController::Errors::ApiError.new_from_details('BadQueryParameter',
                                                                 "inline_relations_depth must be <= #{@max_inline_relations_depth}")
Severity: Minor
Found in lib/cloud_controller/rest_controller/object_renderer.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status