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

From Nikhil Mohite
Subject Patch for SonarQube code scan fixes
Date
Msg-id CAOBg0AM9k10WArR-3VR05A_=6N30uPwJYMSyP6+dGAFxHQMiJg@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. Table file(utils):
  • Refactor this function to reduce its Cognitive Complexity from 39 to the 15 allowed.
  • Refactor this function to reduce its Cognitive Complexity from 122 to the 15 allowed.
  • Refactor this function to reduce its Cognitive Complexity from 58 to the 15 allowed.
2. Table init file:
  • Refactor this function to reduce its Cognitive Complexity from 24 to the 15 allowed.
  • Refactor this function to reduce its Cognitive Complexity from 22 to the 15 allowed.
  • Refactor this function to reduce its Cognitive Complexity from 18 to the 15 allowed.


Regards,
Nikhil Mohite.
Attachment

pgadmin-hackers by date:

Previous
From: Akshay Joshi
Date:
Subject: Re: [pgAdmin][RM5569] [SQL] Bad display of tables storage parameters in the "SQL" tab (correction of bug #5398 not complete)
Next
From: Aditya Toshniwal
Date:
Subject: [pgAdmin][SonarQube] Shadowing variables