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

From Akshay Joshi
Subject Re: [pgAdmin][SonarQube] Reduce cognitive complexity of functions
Date
Msg-id CANxoLDftcn98d=wGqyCE-Q3UsR-UTT6CRZcjSxX+7WsdvuMhhg@mail.gmail.com
Whole thread Raw
In response to [pgAdmin][SonarQube] Reduce cognitive complexity of functions  (Aditya Toshniwal <aditya.toshniwal@enterprisedb.com>)
List pgadmin-hackers
Thanks, patch applied.

On Mon, Jul 20, 2020 at 12:25 PM Aditya Toshniwal <aditya.toshniwal@enterprisedb.com> wrote:
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"


--
Thanks & Regards
Akshay Joshi
pgAdmin Hacker | Sr. Software Architect
EDB Postgres
Mobile: +91 976-788-8246

pgadmin-hackers by date:

Previous
From: Akshay Joshi
Date:
Subject: Re: [pgAdmin4][Patch] - SonarQube Issues - 11 (Unused local variables should be removed)
Next
From: Akshay Joshi
Date:
Subject: Re: Patch for SonarQube code scan fixes.