[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-01 10:04:02
Message-ID: CAM9w-_kC6DRyDLgyVJBRx3_ocjzVWOK4k5_5haOV-GwWjO6vTw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi Hackers,

Attached patch reduces cognitive complexity as below:

web/.../server_groups/servers/pgagent/__init__.py - 23 to 15
web/pgadmin/utils/driver/psycopg2/__init__.py - 23 to 15, 17 to 15
web/setup.py 77 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.pgagent.patch application/octet-stream 15.3 KB

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Akshay Joshi 2020-09-01 10:35:56 pgAdmin 4 commit: Modified 'cryptography' version to less than or equal
Previous Message Murtuza Zabuawala 2020-09-01 09:24:18 Re: More idiomatic python3 + fix some tests