[pgAdmin][SonarQube] Cognitive complexity roles + test cases - Mailing list pgadmin-hackers

From Aditya Toshniwal
Subject [pgAdmin][SonarQube] Cognitive complexity roles + test cases
Date
Msg-id CAM9w-_=HFdix74XDDRi07pyQeyP4xUKFR5CM-qygaLkrWj5Uvg@mail.gmail.com
Whole thread Raw
Responses Re: [pgAdmin][SonarQube] Cognitive complexity roles + test cases  (Akshay Joshi <akshay.joshi@enterprisedb.com>)
List pgadmin-hackers
Hi Hackers,

Attached is the patch to reduce the cognitive complexity for validate_request function in roles module from 258 to 15. I've also added a few more test scenarios in the roles RE-SQL test cases to make sure the changes are tested.

Please review.

--
Thanks,
Aditya Toshniwal
pgAdmin hacker | Sr. Software Engineer | edbpostgres.com
"Don't Complain about Heat, Plant a TREE"
Attachment

pgadmin-hackers by date:

Previous
From: Pramod Ahire
Date:
Subject: SCSS Minor SonarQube fixes
Next
From: Akshay Joshi
Date:
Subject: Re: SCSS Minor SonarQube fixes