[pgAdmin][SonarQube]: Cognitive complexity

From: Pradip Parkale <pradip(dot)parkale(at)enterprisedb(dot)com>
To: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: [pgAdmin][SonarQube]: Cognitive complexity
Date: 2020-08-20 15:22:40
Message-ID: CAJ9T6Suo3EpqoB1Zhw+xsc+CC-jtsEiD=3gw6ffA6ASEWLYF2A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi Hackers,

The attached patch will reduce cognitive complexity for the following
functions.

1. web/.../databases/schemas/domains/__init__.py - 16 to 15.
2. web/.../tables/row_security_policies/__init__.py - 17 to 15.
3. web/pgadmin/tools/debugger/__init__.py - 23 to 15
4. user_mapping/__init__.py. 35 to 15.
5. browser/__init__.py.

--
Thanks & Regards,
Pradip Parkale
Software Engineer | EnterpriseDB Corporation

Attachment Content-Type Size
cognitive_comple_sonarQube.patch application/octet-stream 16.1 KB

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Pradip Parkale 2020-08-20 15:26:34 Re: [pgAdmin][SonarQube]: Cognitive complexity
Previous Message Akshay Joshi 2020-08-20 14:57:05 pgAdmin 4 commit: Fixed code smell 'Define a constant instead of duplic