[pgAdmin][SonarQube] Reduce cognitive complexity of functions

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 of functions
Date: 2020-07-20 06:54:17
Message-ID: CAM9w-_=PPKYPdaSVTdoDrPBBAB-hUXkUjWF1Et6gf=gqHcQzOg@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 of functions:
1) web/.../exclusion_constraint/__init__.py > create > from 25 to 15
2) web/.../exclusion_constraint/__init__.py > sql > from 19 to 15
3) web/.../databases/schemas/utils.py > parse_vacuum_data > from 18 to 15
4) web/.../tools/debugger/__init__.py > initialize_target > from 37 to 15
5) web/.../tools/debugger/__init__.py > execute_debugger_query > from 22 to
15
6) web/.../tools/debugger/__init__.py > messages > from 16 to 15
Please review.

--
Regards,
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.cognitive.patch application/octet-stream 18.1 KB

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Nikhil Mohite 2020-07-20 08:10:41 Re: [pgAdmin][RM5653]: High Contrast UI Theme
Previous Message Akshay Joshi 2020-07-20 06:42:43 Re: Translators: Release next week