[pgAdmin][SonarQube] Reduce cognitive complexity

From: Aditya Toshniwal <aditya(dot)toshniwal(at)enterprisedb(dot)com>
To: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: [pgAdmin][SonarQube] Reduce cognitive complexity
Date: 2020-09-03 10:08:05
Message-ID: CAM9w-_nozC6DZmtwX6bYj17=t_Ev7jETJ3D0HAhc_oDSyhXLKA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

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"

Attachment Content-Type Size
sonarqube.grant.patch application/octet-stream 17.0 KB

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Pradip Parkale 2020-09-03 10:59:44 [pgAdmin][SonarQube] : Remove duplicates string literals.
Previous Message Akshay Joshi 2020-09-03 08:53:33 Re: [pgAdmin][RM4979]: Configuration files for data sources or similar.