app/controllers/runtime/app_bits_upload_controller.rb
Method upload
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def upload(guid)
process = find_guid_and_validate_access(:upload, guid)
raise CloudController::Errors::ApiError.new_from_details('UnprocessableEntity', 'cannot upload bits to a docker app') if process.docker?