Standardize API error handling and JSON parsing across major controllers #190
Quality Gate failed
Failed conditions
16.2% Duplication on New Code (required ≤ 3%)
B Maintainability Rating on New Code (required ≥ A)
See analysis details on SonarQube Cloud
Catch issues before they fail your Quality Gate with our IDE extension
SonarQube for IDE
Annotations
Check warning on line 274 in src/main/java/com/iemr/hwc/controller/ncdCare/NCDCareController.java
sonarqubecloud / SonarCloud Code Analysis
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
See more on https://sonarcloud.io/project/issues?id=PSMRI_HWC-API&issues=AZy9uUdnUWGM6cAyS4rW&open=AZy9uUdnUWGM6cAyS4rW&pullRequest=190
sonarqubecloud / SonarCloud Code Analysis
Replace generic exceptions with specific library exceptions or a custom exception.
See more on https://sonarcloud.io/project/issues?id=PSMRI_HWC-API&issues=AZy9uUZ2UWGM6cAyS4p6&open=AZy9uUZ2UWGM6cAyS4p6&pullRequest=190
sonarqubecloud / SonarCloud Code Analysis
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
See more on https://sonarcloud.io/project/issues?id=PSMRI_HWC-API&issues=AZy9uUdJUWGM6cAyS4rN&open=AZy9uUdJUWGM6cAyS4rN&pullRequest=190
sonarqubecloud / SonarCloud Code Analysis
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
See more on https://sonarcloud.io/project/issues?id=PSMRI_HWC-API&issues=AZy9uUcmUWGM6cAyS4qq&open=AZy9uUcmUWGM6cAyS4qq&pullRequest=190
sonarqubecloud / SonarCloud Code Analysis
Define a constant instead of duplicating this literal "visitCode" 6 times.
See more on https://sonarcloud.io/project/issues?id=PSMRI_HWC-API&issues=AZy9uUZ2UWGM6cAyS4p-&open=AZy9uUZ2UWGM6cAyS4p-&pullRequest=190
sonarqubecloud / SonarCloud Code Analysis
Define a constant instead of duplicating this literal "visitCode" 10 times.
See more on https://sonarcloud.io/project/issues?id=PSMRI_HWC-API&issues=AZy9uUa6UWGM6cAyS4qT&open=AZy9uUa6UWGM6cAyS4qT&pullRequest=190
sonarqubecloud / SonarCloud Code Analysis
Replace generic exceptions with specific library exceptions or a custom exception.
See more on https://sonarcloud.io/project/issues?id=PSMRI_HWC-API&issues=AZy9uUbdUWGM6cAyS4qb&open=AZy9uUbdUWGM6cAyS4qb&pullRequest=190
sonarqubecloud / SonarCloud Code Analysis
Replace generic exceptions with specific library exceptions or a custom exception.
See more on https://sonarcloud.io/project/issues?id=PSMRI_HWC-API&issues=AZy9uUcmUWGM6cAyS4q-&open=AZy9uUcmUWGM6cAyS4q-&pullRequest=190
sonarqubecloud / SonarCloud Code Analysis
Replace generic exceptions with specific library exceptions or a custom exception.
See more on https://sonarcloud.io/project/issues?id=PSMRI_HWC-API&issues=AZy9uUcmUWGM6cAyS4rA&open=AZy9uUcmUWGM6cAyS4rA&pullRequest=190
sonarqubecloud / SonarCloud Code Analysis
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
See more on https://sonarcloud.io/project/issues?id=PSMRI_HWC-API&issues=AZy9uUdJUWGM6cAyS4rM&open=AZy9uUdJUWGM6cAyS4rM&pullRequest=190
Check warning on line 145 in src/main/java/com/iemr/hwc/controller/ncdCare/NCDCareController.java
sonarqubecloud / SonarCloud Code Analysis
Replace generic exceptions with specific library exceptions or a custom exception.
See more on https://sonarcloud.io/project/issues?id=PSMRI_HWC-API&issues=AZy9uUdnUWGM6cAyS4rY&open=AZy9uUdnUWGM6cAyS4rY&pullRequest=190
sonarqubecloud / SonarCloud Code Analysis
Define a constant instead of duplicating this literal "beneficiaryRegID" 7 times.
See more on https://sonarcloud.io/project/issues?id=PSMRI_HWC-API&issues=AZy9uUcmUWGM6cAyS4rF&open=AZy9uUcmUWGM6cAyS4rF&pullRequest=190
sonarqubecloud / SonarCloud Code Analysis
Replace generic exceptions with specific library exceptions or a custom exception.
See more on https://sonarcloud.io/project/issues?id=PSMRI_HWC-API&issues=AZy9uUcmUWGM6cAyS4q2&open=AZy9uUcmUWGM6cAyS4q2&pullRequest=190
Check warning on line 270 in src/main/java/com/iemr/hwc/controller/covid19/CovidController.java
sonarqubecloud / SonarCloud Code Analysis
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
See more on https://sonarcloud.io/project/issues?id=PSMRI_HWC-API&issues=AZy9uUY7UWGM6cAyS4pv&open=AZy9uUY7UWGM6cAyS4pv&pullRequest=190
Check warning on line 151 in src/main/java/com/iemr/hwc/controller/anc/AntenatalCareController.java
sonarqubecloud / SonarCloud Code Analysis
Replace generic exceptions with specific library exceptions or a custom exception.
See more on https://sonarcloud.io/project/issues?id=PSMRI_HWC-API&issues=AZy9uUaZUWGM6cAyS4qC&open=AZy9uUaZUWGM6cAyS4qC&pullRequest=190
sonarqubecloud / SonarCloud Code Analysis
Replace generic exceptions with specific library exceptions or a custom exception.
See more on https://sonarcloud.io/project/issues?id=PSMRI_HWC-API&issues=AZy9uUZ2UWGM6cAyS4p7&open=AZy9uUZ2UWGM6cAyS4p7&pullRequest=190
Check warning on line 111 in src/main/java/com/iemr/hwc/controller/covid19/CovidController.java
sonarqubecloud / SonarCloud Code Analysis
Replace generic exceptions with specific library exceptions or a custom exception.
See more on https://sonarcloud.io/project/issues?id=PSMRI_HWC-API&issues=AZy9uUY7UWGM6cAyS4pw&open=AZy9uUY7UWGM6cAyS4pw&pullRequest=190
sonarqubecloud / SonarCloud Code Analysis
Replace generic exceptions with specific library exceptions or a custom exception.
See more on https://sonarcloud.io/project/issues?id=PSMRI_HWC-API&issues=AZy9uUcmUWGM6cAyS4q_&open=AZy9uUcmUWGM6cAyS4q_&pullRequest=190
Check warning on line 259 in src/main/java/com/iemr/hwc/controller/pnc/PostnatalCareController.java
sonarqubecloud / SonarCloud Code Analysis
Replace generic exceptions with specific library exceptions or a custom exception.
See more on https://sonarcloud.io/project/issues?id=PSMRI_HWC-API&issues=AZy9uUeJUWGM6cAyS4rk&open=AZy9uUeJUWGM6cAyS4rk&pullRequest=190
sonarqubecloud / SonarCloud Code Analysis
Replace generic exceptions with specific library exceptions or a custom exception.
See more on https://sonarcloud.io/project/issues?id=PSMRI_HWC-API&issues=AZy9uUb0UWGM6cAyS4qk&open=AZy9uUb0UWGM6cAyS4qk&pullRequest=190
Check warning on line 150 in src/main/java/com/iemr/hwc/controller/pnc/PostnatalCareController.java
sonarqubecloud / SonarCloud Code Analysis
Replace generic exceptions with specific library exceptions or a custom exception.
See more on https://sonarcloud.io/project/issues?id=PSMRI_HWC-API&issues=AZy9uUeJUWGM6cAyS4rg&open=AZy9uUeJUWGM6cAyS4rg&pullRequest=190
sonarqubecloud / SonarCloud Code Analysis
Replace generic exceptions with specific library exceptions or a custom exception.
See more on https://sonarcloud.io/project/issues?id=PSMRI_HWC-API&issues=AZy9uUbdUWGM6cAyS4qa&open=AZy9uUbdUWGM6cAyS4qa&pullRequest=190
sonarqubecloud / SonarCloud Code Analysis
Replace generic exceptions with specific library exceptions or a custom exception.
See more on https://sonarcloud.io/project/issues?id=PSMRI_HWC-API&issues=AZy9uUbdUWGM6cAyS4qf&open=AZy9uUbdUWGM6cAyS4qf&pullRequest=190
sonarqubecloud / SonarCloud Code Analysis
Replace generic exceptions with specific library exceptions or a custom exception.
See more on https://sonarcloud.io/project/issues?id=PSMRI_HWC-API&issues=AZy9uUcmUWGM6cAyS4qu&open=AZy9uUcmUWGM6cAyS4qu&pullRequest=190
sonarqubecloud / SonarCloud Code Analysis
Replace generic exceptions with specific library exceptions or a custom exception.
See more on https://sonarcloud.io/project/issues?id=PSMRI_HWC-API&issues=AZy9uUb0UWGM6cAyS4qi&open=AZy9uUb0UWGM6cAyS4qi&pullRequest=190