Hi Team,
I have fixed some code smell issues in the SonarQube scan, PFA patch.
Details as follows:
1. Servers file(utils):
- Refactor this function to reduce its Cognitive Complexity from 19 to the 15 allowed.
- Refactor this function to reduce its Cognitive Complexity from 33 to the 15 allowed.
2. Tablespaces init file:
- Refactor this function to reduce its Cognitive Complexity from 48 to the 15 allowed.
- Refactor this function to reduce its Cognitive Complexity from 32 to the 15 allowed.
3. Server Roles init file:
- Refactor this function to reduce its Cognitive Complexity from 52 to the 15 allowed.
- Refactor this function to reduce its Cognitive Complexity from 34 to the 15 allowed.
4. Resource Groups init file:
- Refactor this function to reduce its Cognitive Complexity from 29 to the 15 allowed.
- Refactor this function to reduce its Cognitive Complexity from 21 to the 15 allowed.
- Refactor this function to reduce its Cognitive Complexity from 17 to the 15 allowed.
*In Server roles file one code smell is pending, I will share that in the next patch.
Regards,
Nikhil Mohite