Method create
has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
def create
unless pull_params
redirect :back
end
to_project = find_destination_project
Method create
has 34 lines of code (exceeds 25 allowed). Consider refactoring.
def create
unless pull_params
redirect :back
end
to_project = find_destination_project
Method new
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
def new
to_project = find_destination_project(false)
authorize to_project, :show?
@pull = to_project.pull_requests.new
Method update
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
def update
authorize @pull
status = 422
if (action = params[:pull_request_action]) && %w(close reopen).include?(params[:pull_request_action])
if @pull.send("can_#{action}?")
There are no issues that match your filters.