From: | Nikhil Mohite <nikhil(dot)mohite(at)enterprisedb(dot)com> |
---|---|
To: | pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org> |
Subject: | Patch for SonarQube code scan fixes. |
Date: | 2020-07-21 04:52:06 |
Message-ID: | CAOBg0APsd5hyYQ6QotKzbt=8zU7NgxgOy0t0h0mvEp2tsg9irA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-hackers |
Hi Team,
I have fixed some code smell issues in the SonarQube scan, PFA patch.
Details as follows:
1. Database utils:
- Refactor this function to reduce its Cognitive Complexity from 27 to
the 15 allowed.
2. Schema views:
- Refactor this function to reduce its Cognitive Complexity from 23 to
the 15 allowed.
- Refactor this function to reduce its Cognitive Complexity from 72 to
the 15 allowed.
3. Foreign key utils:
- Refactor this function to reduce its Cognitive Complexity from 39 to
the 15 allowed.
- Refactor this function to reduce its Cognitive Complexity from 18 to
the 15 allowed.
4. Rules init:
- Refactor this function to reduce its Cognitive Complexity from 20 to
the 15 allowed.
5. Trigger init and utils:
- Refactor this function to reduce its Cognitive Complexity from 16 to
the 15 allowed.
- Refactor this function to reduce its Cognitive Complexity from 34 to
the 15 allowed.
Regards,
Nikhil Mohite.
Attachment | Content-Type | Size |
---|---|---|
SOnarQubeCodeSmellFixes.patch | application/octet-stream | 35.5 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Pradip Parkale | 2020-07-21 12:06:54 | [pgAdmin][RM5686]: Unable to update RLS policy if the policy name contains space in it |
Previous Message | Libor M. | 2020-07-20 12:24:49 | pgAdmin 4 - Czech translation update for 4.24 |