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-29 05:43:50
Message-ID: CAOBg0AMphCrjTFsXyv9BbYjE7wZyaFvsE2DFJzqj_Ko331ShzQ@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:

Foreign key init:

- Refactor this function to reduce its Cognitive Complexity from 33 to
the 15 allowed.

Constraints:

1. Index constraints:
1. Refactor this function to reduce its Cognitive Complexity from 35
to the 15 allowed.
2. Check constraints:
1. Refactor this function to reduce its Cognitive Complexity from 18
to the 15 allowed.
2. Refactor this function to reduce its Cognitive Complexity from 28
to the 15 allowed.

Component Trigger:

- 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.
- Refactor this function to reduce its Cognitive Complexity from 16 to
the 15 allowed.

Table column util:

- Refactor this function to reduce its Cognitive Complexity from 24 to
the 15 allowed.

Foreign Tables init:

- Refactor this function to reduce its Cognitive Complexity from 16 to
the 15 allowed.

Regards,
Nikhil Mohite.

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

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Dave Page 2020-07-29 08:26:14 pgAdmin 4 commit: Correct TLS certificate filename in the container dep
Previous Message Akshay Joshi 2020-07-28 13:08:21 Re: Runtime refactoring