[pgAdmin][SonarQube] Cognitive complexity - Mailing list pgadmin-hackers

From Aditya Toshniwal
Subject [pgAdmin][SonarQube] Cognitive complexity
Date
Msg-id CAM9w-_n5DUGZVf328e2h6w_8Op47wuSfHDwzpURBeUrhAKG+aQ@mail.gmail.com
Whole thread Raw
Responses Re: [pgAdmin][SonarQube] Cognitive complexity  (Akshay Joshi <akshay.joshi@enterprisedb.com>)
List 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
"Don't Complain about Heat, Plant a TREE"
Attachment

pgadmin-hackers by date:

Previous
From: Pradip Parkale
Date:
Subject: Re: [pgAdmin][SonarQube]: Cognitive complexity
Next
From: Nikhil Mohite
Date:
Subject: [pgAdmin][RM-5748][RESQL] Incorrect SQL for Foreign key when creating a table