Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RUBERIC: Cognitive Complexity #27

Closed
jamcdon4 opened this issue Mar 18, 2020 · 0 comments
Closed

RUBERIC: Cognitive Complexity #27

jamcdon4 opened this issue Mar 18, 2020 · 0 comments
Assignees
Labels
wontfix This will not be worked on

Comments

@jamcdon4
Copy link
Collaborator

jamcdon4 commented Mar 18, 2020

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.

@Sattlert2 Sattlert2 self-assigned this Mar 18, 2020
@Sattlert2 Sattlert2 added the wontfix This will not be worked on label Mar 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants