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-13 04:10:23
Message-ID: CAOBg0AM9k10WArR-3VR05A_=6N30uPwJYMSyP6+dGAFxHQMiJg@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 file(utils):

- Refactor this function to reduce its Cognitive Complexity from 39 to
the 15 allowed.
- Refactor this function to reduce its Cognitive Complexity from 122 to
the 15 allowed.
- Refactor this function to reduce its Cognitive Complexity from 58 to
the 15 allowed.

2. Table init file:

- Refactor this function to reduce its Cognitive Complexity from 24 to
the 15 allowed.
- Refactor this function to reduce its Cognitive Complexity from 22 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
sonarQubeCodeSmellFixes.patch application/octet-stream 62.1 KB

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Aditya Toshniwal 2020-07-13 04:44:56 [pgAdmin][SonarQube] Shadowing variables
Previous Message Akshay Joshi 2020-07-11 15:10:26 Re: [pgAdmin][RM5569] [SQL] Bad display of tables storage parameters in the "SQL" tab (correction of bug #5398 not complete)