Patch for SonarQube code scan fixes. - Mailing list pgadmin-hackers

From Nikhil Mohite
Subject Patch for SonarQube code scan fixes.
Date
Msg-id CAOBg0APwgeHOLDPea-ztnpSSvEezSM8oFpiDjq=LAOwA58oXPg@mail.gmail.com
Whole thread Raw
Responses Re: Patch for SonarQube code scan fixes.  (Akshay Joshi <akshay.joshi@enterprisedb.com>)
List pgadmin-hackers
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

pgadmin-hackers by date:

Previous
From: Akshay Joshi
Date:
Subject: Re: [pgAdmin][SonarQube]: Cognitive complexity
Next
From: Akshay Joshi
Date:
Subject: pgAdmin 4 commit: Replace 'fa-clock-o' with 'fa-clock' which is appropr