[pgAdmin][SonarQube] Cognitive complexity

From: Aditya Toshniwal <aditya(dot)toshniwal(at)enterprisedb(dot)com>
To: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: [pgAdmin][SonarQube] Cognitive complexity
Date: 2020-08-24 11:31:28
Message-ID: CAM9w-_n5DUGZVf328e2h6w_8Op47wuSfHDwzpURBeUrhAKG+aQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi Hackers,

Attached patch reduces the cognitive complexity of functions for below:
web/.../schemas/packages/edbfuncs/__init__.py 21 to 15
web/.../databases/schemas/types/__init__.py 39 to 15; 80 to 15
web/.../server_groups/servers/pgagent/__init__.py 39 to 15
web/pgadmin/misc/bgprocess/process_executor.py 19 to 15
web/pgadmin/tools/backup/__init__.py 54 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.cognitive.types.patch application/octet-stream 36.9 KB

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Nikhil Mohite 2020-08-24 12:18:43 [pgAdmin][RM-5748][RESQL] Incorrect SQL for Foreign key when creating a table
Previous Message Pradip Parkale 2020-08-24 11:17:12 Re: [pgAdmin][SonarQube]: Cognitive complexity