rosa-abf/rosa-build

View on GitHub
app/controllers/api/v1/projects_controller.rb

Summary

Maintainability
A
25 mins
Test Coverage

Showing 1 of 1 total issue

Method fork has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

def fork(is_alias = false)
owner = (Group.find params[:group_id] if params[:group_id].present?) || current_user
authorize @project, :show?
authorize owner, :write? if owner.is_a?(Group)
 
 
Severity: Minor
Found in app/controllers/api/v1/projects_controller.rb - About 25 mins to fix

There are no issues that match your filters.

Category
Status