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

From Nikhil Mohite
Subject Patch for SonarQube code scan fixes.
Date
Msg-id CAOBg0AO9x1D6W1QO3e98cxy5Y-AuP3b__AaGEZ4yGiELcjSmfQ@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. languages:
  • Refactor this function to reduce its Cognitive Complexity from 33 to the 15 allowed.
2. foreign table:
  • Refactor this function to reduce its Cognitive Complexity from 73 to the 15 allowed.
3. schema_diff_utils:
  • Refactor this function to reduce its Cognitive Complexity from 30 to the 15 allowed.
4. schema utils:
  • Refactor this function to reduce its Cognitive Complexity from 23 to the 15 allowed.
  • Refactor this function to reduce its Cognitive Complexity from 38 to the 15 allowed.
5. schema views:
  • Refactor this function to reduce its Cognitive Complexity from 18 to the 15 allowed.
6. schema diff directory_compare:
  • Refactor this function to reduce its Cognitive Complexity from 54 to the 15 allowed.
  • Refactor this function to reduce its Cognitive Complexity from 16 to the 15 allowed.
Attachment

pgadmin-hackers by date:

Previous
From: Aditya Toshniwal
Date:
Subject: Re: please add improvement in restoration tasks
Next
From: Akshay Joshi
Date:
Subject: pgAdmin 4 commit: Update French translation.