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 15 allowed.
   - Refactor this function to reduce its Cognitive Complexity from 58 to
   the 15 allowed.

2. Table init file:

   - Refactor this function to reduce its Cognitive Complexity from 24 to
   the 15 allowed.
   - Refactor this function to reduce its Cognitive Complexity from 22 to
   the 15 allowed.
   - Refactor this function to reduce its Cognitive Complexity from 18 to
   the 15 allowed.



Regards,
Nikhil Mohite.


sonarQubeCodeSmellFixes.patch
Description: Binary data


[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 a TREE"


sonarqube.shadowing.patch
Description: Binary data