[pgAdmin][SonarQube] Critical issue fixes - servers - Mailing list pgadmin-hackers

From Rahul Shirsat
Subject [pgAdmin][SonarQube] Critical issue fixes - servers
Date
Msg-id CAKtn9dNeoskXBtK3q3bQvM__GgLrcBJnADSaWi_fEr_+WTOCYw@mail.gmail.com
Whole thread Raw
Responses Re: [pgAdmin][SonarQube] Critical issue fixes - servers  (Rahul Shirsat <rahul.shirsat@enterprisedb.com>)
List pgadmin-hackers
Hi Hackers,

Please find the attached patch which includes sonarqube fixes :

1. Refactor this function to reduce its Cognitive Complexity from 18 to the 15 allowed
    for check_ssl_fields in servers/__init__.py
2. Refactor this function to reduce its Cognitive Complexity from 25 to the 15 allowed
    for update in servers/__init__.py

Note: Changes were tested in both Server mode & Desktop mode respectively.

--
Rahul Shirsat
Software Engineer | EnterpriseDB Corporation.
Attachment

pgadmin-hackers by date:

Previous
From: Yogesh Mahajan
Date:
Subject: Re: [pgAdmin4][RM#5662] [Accessibility] File manager dialog was not rendering properly due to fixed width and height set in the code
Next
From: Yogesh Mahajan
Date:
Subject: [pgAdmin4][Patch] - SonarQube Issues - 10 (Variables should not be shadowed)