You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Method save_all_questions has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
New
def save_all_questions
questionnaire_id = params[:id]
begin
if params[:save]
params[:question].each_pair do |k, v|
Severity: Minor
Found in app/controllers/questionnaires_controller.rb - About 45 mins to fix
Assignment Branch Condition size for save_all_questions is too high. [26.78/15]
Severity: Minor
wontfix: Although code is long and has two nested loops. No need to make changes.
The text was updated successfully, but these errors were encountered:
Method save_all_questions has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
New
def save_all_questions
questionnaire_id = params[:id]
begin
if params[:save]
params[:question].each_pair do |k, v|
Severity: Minor
Found in app/controllers/questionnaires_controller.rb - About 45 mins to fix
Assignment Branch Condition size for save_all_questions is too high. [26.78/15]
Severity: Minor
wontfix: Although code is long and has two nested loops. No need to make changes.
The text was updated successfully, but these errors were encountered: