| 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-08-05 05:01:51 |
| Message-ID: | CAOBg0AM_j_UEEHKoB3spfMu_4TZqTB-FxVLqhsvU=sfzoOoZ-Q@mail.gmail.com |
| Views: | Whole Thread | Raw Message | 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. Schema Domains and Domain Constraints:
- Refactor this function to reduce its Cognitive Complexity from 34 to
the 15 allowed.
- Refactor this function to reduce its Cognitive Complexity from 27 to
the 15 allowed.
2. Tables Columns:
- Refactor this function to reduce its Cognitive Complexity from 45 to
the 15 allowed.
- Refactor this function to reduce its Cognitive Complexity from 51 to
the 15 allowed.
3. Exclusion Constraint:
- Refactor this function to reduce its Cognitive Complexity from 23 to
the 15 allowed.
- Refactor this function to reduce its Cognitive Complexity from 18 to
the 15 allowed.
4. Schema Types:
- Refactor this function to reduce its Cognitive Complexity from 17 to
the 15 allowed.
Regards,
Nikhil Mohite.
| Attachment | Content-Type | Size |
|---|---|---|
| SonarQubeCodeSmellFixes.patch | application/octet-stream | 26.3 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Aditya Toshniwal | 2020-08-05 05:38:29 | [pgAdmin][SonarQube] Replace the generic exception class with a more specific one |
| Previous Message | Fontana Daniel C (Desartec S.R.L.) | 2020-08-04 23:02:55 | Local variable 'debugger_version' referenced before assignment |