Re: [pgAdmin][SonarQube] Reduce cognitive complexity

From: Akshay Joshi <akshay(dot)joshi(at)enterprisedb(dot)com>
To: Aditya Toshniwal <aditya(dot)toshniwal(at)enterprisedb(dot)com>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: [pgAdmin][SonarQube] Reduce cognitive complexity
Date: 2020-09-03 13:26:51
Message-ID: CANxoLDdn0woLVCOjgxHwVYho3PnunsU_i8q4By=kC6BWhxBTxw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Thanks, patch applied.

On Thu, Sep 3, 2020 at 3:38 PM Aditya Toshniwal <
aditya(dot)toshniwal(at)enterprisedb(dot)com> wrote:

> Hi Hackers,
>
> Attached is the patch to reduce cognitive complexity as below:
> web/pgadmin/misc/file_manager/__init__.py 20 to 15
> web/pgadmin/tools/grant_wizard/__init__.py 55 to 15
> web/pgadmin/tools/sqleditor/__init__.py 33 to 15
>
> Please review.
>
> --
> Thanks,
> Aditya Toshniwal
> pgAdmin hacker | Sr. Software Engineer | *edbpostgres.com*
> <http://edbpostgres.com>
> "Don't Complain about Heat, Plant a TREE"
>

--
*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 Pradip Parkale 2020-09-03 13:49:09 Re: [pgAdmin][SonarQube] : Remove duplicates string literals.
Previous Message Akshay Joshi 2020-09-03 13:26:32 Re: [pgAdmin4][Patch] - SonarQube Fixes