Thread: Patch for SonarQube code scan fixes.
Hi Team,
I have fixed some code smell issues in the SonarQube scan, PFA patch.
Details as follows:
- Refactor this function to reduce its Cognitive Complexity from 33 to the 15 allowed.
Constraints:
- Index constraints:
- Refactor this function to reduce its Cognitive Complexity from 35 to the 15 allowed.
- Check constraints:
- Refactor this function to reduce its Cognitive Complexity from 18 to the 15 allowed.
- Refactor this function to reduce its Cognitive Complexity from 28 to the 15 allowed.
Component Trigger:
- Refactor this function to reduce its Cognitive Complexity from 16 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 16 to the 15 allowed.
Table column util:
- Refactor this function to reduce its Cognitive Complexity from 24 to the 15 allowed.
Foreign Tables init:
- Refactor this function to reduce its Cognitive Complexity from 16 to the 15 allowed.
Regards,
Nikhil Mohite.
Attachment
Thanks, patch applied.
On Wed, Jul 29, 2020 at 4:24 PM Nikhil Mohite <nikhil.mohite@enterprisedb.com> wrote:
Hi Team,I have fixed some code smell issues in the SonarQube scan, PFA patch.Details as follows:Foreign key init:
- Refactor this function to reduce its Cognitive Complexity from 33 to the 15 allowed.
Constraints:
- Index constraints:
- Refactor this function to reduce its Cognitive Complexity from 35 to the 15 allowed.
- Check constraints:
- Refactor this function to reduce its Cognitive Complexity from 18 to the 15 allowed.
- Refactor this function to reduce its Cognitive Complexity from 28 to the 15 allowed.
Component Trigger:
- Refactor this function to reduce its Cognitive Complexity from 16 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 16 to the 15 allowed.
Table column util:
- Refactor this function to reduce its Cognitive Complexity from 24 to the 15 allowed.
Foreign Tables init:
- Refactor this function to reduce its Cognitive Complexity from 16 to the 15 allowed.
Regards,Nikhil Mohite.
Thanks & Regards
Akshay Joshi
pgAdmin Hacker | Sr. Software Architect
EDB PostgresMobile: +91 976-788-8246