Re: Patch for SonarQube code scan fixes.

From: Akshay Joshi <akshay(dot)joshi(at)enterprisedb(dot)com>
To: Nikhil Mohite <nikhil(dot)mohite(at)enterprisedb(dot)com>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: Patch for SonarQube code scan fixes.
Date: 2020-07-29 13:00:51
Message-ID: CANxoLDe9QoK_hU1b-GP=7zepCfmDYVvX-UUJ7sLorhmTHTg_5g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Thanks, patch applied.

On Wed, Jul 29, 2020 at 4:24 PM Nikhil Mohite <
nikhil(dot)mohite(at)enterprisedb(dot)com> wrote:

> 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.
>
>
>

--
*Thanks & Regards*
*Akshay Joshi*
*pgAdmin Hacker | Sr. Software Architect*
*EDB Postgres <http://edbpostgres.com>*

*Mobile: +91 976-788-8246*

In response to

Browse pgadmin-hackers by date

  From Date Subject
Next Message Akshay Joshi 2020-07-29 13:01:00 Re: [pgAdmin][RM5632] Cannot specify start with value during setup of an identity column
Previous Message Akshay Joshi 2020-07-29 12:59:14 pgAdmin 4 commit: Fixed code smells in runtime code reported by SonarQu