Thread: Patch for SonarQube code scan fixes.

Patch for SonarQube code scan fixes.

From
Nikhil Mohite
Date:
Hi Team,

I have fixed some code smell issues in the SonarQube scan, PFA patch.
Details as follows:
1. Foreign servers:
  • Refactor this function to reduce its Cognitive Complexity from 49 to the 15 allowed.
2. bgprocess/process:
  • Refactor this function to reduce its Cognitive Complexity from 20 to the 15 allowed.
  • Refactor this function to reduce its Cognitive Complexity from 19 to the 15 allowed.
3. directory compare:
  • Refactor this function to reduce its Cognitive Complexity from 24 to the 15 allowed.
4. sql editor:
  • Refactor this function to reduce its Cognitive Complexity from 19 to the 15 allowed.
  • Refactor this function to reduce its Cognitive Complexity from 18 to the 15 allowed.

Regards,
Nikhil Mohite.
Attachment

Re: Patch for SonarQube code scan fixes.

From
Akshay Joshi
Date:
Thanks, patch applied.

On Fri, Aug 21, 2020 at 12:23 PM Nikhil Mohite <nikhil.mohite@enterprisedb.com> wrote:
Hi Team,

I have fixed some code smell issues in the SonarQube scan, PFA patch.
Details as follows:
1. Foreign servers:
  • Refactor this function to reduce its Cognitive Complexity from 49 to the 15 allowed.
2. bgprocess/process:
  • Refactor this function to reduce its Cognitive Complexity from 20 to the 15 allowed.
  • Refactor this function to reduce its Cognitive Complexity from 19 to the 15 allowed.
3. directory compare:
  • Refactor this function to reduce its Cognitive Complexity from 24 to the 15 allowed.
4. sql editor:
  • Refactor this function to reduce its Cognitive Complexity from 19 to the 15 allowed.
  • Refactor this function to reduce its Cognitive Complexity from 18 to the 15 allowed.

Regards,
Nikhil Mohite.


--
Thanks & Regards
Akshay Joshi
pgAdmin Hacker | Sr. Software Architect
EDB Postgres
Mobile: +91 976-788-8246