Patch for SonarQube code scan fixes.

From: Nikhil Mohite <nikhil(dot)mohite(at)enterprisedb(dot)com>
To: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Patch for SonarQube code scan fixes.
Date: 2020-08-21 06:53:36
Message-ID: CAOBg0APwgeHOLDPea-ztnpSSvEezSM8oFpiDjq=LAOwA58oXPg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
sonarQubeCodeSmell.patch application/octet-stream 20.3 KB

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Akshay Joshi 2020-08-21 08:22:19 pgAdmin 4 commit: Fixed cognitive complexity issues reported by SonarQu
Previous Message Akshay Joshi 2020-08-21 06:23:20 Re: [pgAdmin][SonarQube]: Cognitive complexity