Patch for SonarQube code scan fixes

2020-07-12 Thread Nikhil Mohite
Hi Team, I have fixed some code smell issues in the SonarQube scan, PFA patch. Details as follows: 1. Table file(utils): - Refactor this function to reduce its Cognitive Complexity from 39 to the 15 allowed. - Refactor this function to reduce its Cognitive Complexity from 122 to the 1

[pgAdmin][SonarQube] Shadowing variables

2020-07-12 Thread Aditya Toshniwal
Hi Hackers, Attached is the patch to fix the SonarQube reported issues (40+) which potentially hides a variable declared in an outer scope. Please review. -- Thanks and Regards, Aditya Toshniwal pgAdmin Hacker | Sr. Software Engineer | EnterpriseDB India | Pune "Don't Complain about Heat, Plant