Issue/Feature Description:
The current implementation contains duplicated string literals and a method with cognitive complexity greater than the allowed threshold standard. This makes the code harder to maintain and violates static analysis rules.
Why this issue to fixed / feature is needed(give scenarios or use cases):
Refactoring to remove duplicated literals and reduce cognitive complexity improves code readability, maintainability, and consistency, making future updates and debugging easier while ensuring compliance with static analysis standards.
How to reproduce, in case of a bug:
Run SonarQube analysis on the repository and observe warnings appearing.
Other Notes / Environment Information: (Please give the env information, log link or any useful information for this issue)
NA
Issue/Feature Description:
The current implementation contains duplicated string literals and a method with cognitive complexity greater than the allowed threshold standard. This makes the code harder to maintain and violates static analysis rules.
Why this issue to fixed / feature is needed(give scenarios or use cases):
Refactoring to remove duplicated literals and reduce cognitive complexity improves code readability, maintainability, and consistency, making future updates and debugging easier while ensuring compliance with static analysis standards.
How to reproduce, in case of a bug:
Run SonarQube analysis on the repository and observe warnings appearing.
Other Notes / Environment Information: (Please give the env information, log link or any useful information for this issue)
NA