[pgAdmin][SonarQube] Reduce cognitive complexity of functions - Mailing list pgadmin-hackers

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

pgadmin-hackers by date:

Previous
From: Akshay Joshi
Date:
Subject: Re: Translators: Release next week
Next
From: Nikhil Mohite
Date:
Subject: Re: [pgAdmin][RM5653]: High Contrast UI Theme