Patch for SonarQube code scan fixes - Mailing list pgadmin-hackers

From Nikhil Mohite
Subject Patch for SonarQube code scan fixes
Date
Msg-id CAOBg0AO8KkPAbu2zqNctr8UWkSKQtV6HPFU8Gd9cCTyvF=FZ-w@mail.gmail.com
Whole thread Raw
Responses Re: Patch for SonarQube code scan fixes  (Akshay Joshi <akshay.joshi@enterprisedb.com>)
List pgadmin-hackers
Hi Team,

I have fixed some code smell issues in the SonarQube scan, PFA patch.
Details as follows:
1. Servers file(utils):
  • Refactor this function to reduce its Cognitive Complexity from 19 to the 15 allowed.
  • Refactor this function to reduce its Cognitive Complexity from 33 to the 15 allowed.
2. Tablespaces init file:
  • Refactor this function to reduce its Cognitive Complexity from 48 to the 15 allowed.
  • Refactor this function to reduce its Cognitive Complexity from 32 to the 15 allowed.
3. Server Roles init file:
  • Refactor this function to reduce its Cognitive Complexity from 52 to the 15 allowed.
  • Refactor this function to reduce its Cognitive Complexity from 34 to the 15 allowed.
4.  Resource Groups init file:
  • Refactor this function to reduce its Cognitive Complexity from 29 to the 15 allowed.
  • Refactor this function to reduce its Cognitive Complexity from 21 to the 15 allowed.
  • Refactor this function to reduce its Cognitive Complexity from 17 to the 15 allowed.
*In Server roles file one code smell is pending, I will share that in the next patch.

Regards,
Nikhil Mohite
Attachment

pgadmin-hackers by date:

Previous
From: Nikhil Mohite
Date:
Subject: [pgAdmin][RM5653]: High Contrast UI Theme
Next
From: Akshay Joshi
Date:
Subject: pgAdmin 4 commit: Fixed code smell 'potential hiding of variables decla