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-09 10:41:28
Message-ID: CAOBg0AOy=Y0d2danfBy0RyvDgDr9d99_8APskw9zeY=qAX230Q@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 files(utils):

- Refactor this function to reduce its Cognitive Complexity from 34 to
the 15 allowed.
- Refactor this function to reduce its Cognitive Complexity from 25 to
the 15 allowed.
- Refactor this function to reduce its Cognitive Complexity from 29 to
the 15 allowed.
- Refactor this function to reduce its Cognitive Complexity from 30 to
the 15 allowed.
- Refactor this function to reduce its Cognitive Complexity from 38 to
the 15 allowed.

There are few issues left from this file, I will send it in the next patch.

Regards,
Nikhil Mohite.

Attachment Content-Type Size
SonarQubeCodeSmellFixes.patch application/octet-stream 17.0 KB

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Yogesh Mahajan 2020-07-09 11:06:57 Re: [pgAdmin4][RM#5662] [Accessibility] File manager dialog was not rendering properly due to fixed width and height set in the code
Previous Message Yogesh Mahajan 2020-07-09 09:54:24 Re: [pgAdmin][Patch] RM 5463 - CSV download quotes numeric columns