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-07-07 04:05:14
Message-ID: CAOBg0AOPXwxLp1LMtuEPW3aZ_idCb-2CTt74C8Bey2DSC4TRYw@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. Table Index files(utils and init):

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

Regards,
Nikhil Mohite.

Attachment Content-Type Size
sonarQube_code_smell.patch application/octet-stream 9.2 KB

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Satish V 2020-07-07 04:48:43 Re- Patch for SonarQube issues
Previous Message Pradip Parkale 2020-07-06 15:07:08 [pgAdmin][RM5622]: Permissive or restricted policy on table from PG 10 and above