ManageIQ/manageiq-api

View on GitHub
app/controllers/api/tasks_controller.rb

Summary

Maintainability
A
25 mins
Test Coverage
A
100%

Showing 1 of 1 total issue

Method render_task_results_entity has a Cognitive Complexity of 12 (exceeds 11 allowed). Consider refactoring.
Open

def render_task_results_entity
id = params[:c_id]
task = find_resource(collection_class(:tasks), :id, id)
raise "Missing context_data in #{task_ident(task)}" if task.context_data.blank?
 
 
Severity: Minor
Found in app/controllers/api/tasks_controller.rb - About 25 mins to fix
Category
Status