Re: Patch for SonarQube code scan fixes

From: Ashesh Vashi <ashesh(dot)vashi(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-01 11:55:15
Message-ID: CAG7mmoz-zbxZqx0B+w42Jfo9a=6Nk5_xj2gbWTL9BgdJGgsAew@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

On Wed, Jul 1, 2020 at 5:23 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:
> 1. Functions files:
>
> - Remove the unused local variable "args"
>
> 2. node.js file in browser/static:
>
> - "j" hides or potentially hides a variable declared in an outer scope
> at line 1080.
>
> This is a common file between pgAdmin & PEM.
Please send a patch to the pgadmin team.

> 3. FTS Templates files:
>
> - Refactor this function to reduce its Cognitive Complexity from 22 to
> the 15 allowed.
>
> This is a common file between pgAdmin & PEM.
Please send a patch to the pgadmin team.

> 4. FTS Parsers files:
>
> - 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.
>
> This is a common file between pgAdmin & PEM.
Please send a patch to the pgadmin team.

> 5. FTS Dictionaries files:
>
> - Refactor this function to reduce its Cognitive Complexity from 25 to
> the 15 allowed.
> - Refactor this function to reduce its Cognitive Complexity from 16 to
> the 15 allowed.
>
> This is a common file between pgAdmin & PEM.
Please send a patch to the pgadmin team.

> 6. FTS Configurations files:
>
> - 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.
>
> This is a common file between pgAdmin & PEM.
Please send a patch to the pgadmin team.

-- Thanks, Ashesh

>
> Regards,
> Nikhil Mohite.
>

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Dave Page 2020-07-01 11:58:43 Re: Patch for SonarQube code scan fixes
Previous Message Nikhil Mohite 2020-07-01 11:52:52 Patch for SonarQube code scan fixes