Skip to content

fix: build error (#375)

81573ef
Select commit
Loading
Failed to load commit list.
Closed

Merge release-3.6.1 into main #377

fix: build error (#375)
81573ef
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Mar 19, 2026 in 52s

Quality Gate failed

Annotations

Check warning on line 43 in src/main/java/com/iemr/common/service/dynamicForm/FormMasterServiceImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this field injection and use constructor injection instead.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Common-API&issues=AZ0Fdv773JYEkI94NNnD&open=AZ0Fdv773JYEkI94NNnD&pullRequest=377

Check warning on line 359 in src/main/java/com/iemr/common/service/beneficiary/IEMRSearchUserServiceImpl.java

See this annotation in the file changed.

@sonarqubecloud 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_Common-API&issues=AZ0Fdv_Q3JYEkI94NNnO&open=AZ0Fdv_Q3JYEkI94NNnO&pullRequest=377

Check warning on line 41 in src/main/java/com/iemr/common/service/beneficiary/IEMRSearchUserService.java

See this annotation in the file changed.

@sonarqubecloud 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_Common-API&issues=AZ0Fdv9x3JYEkI94NNnG&open=AZ0Fdv9x3JYEkI94NNnG&pullRequest=377

Check failure on line 151 in src/main/java/com/iemr/common/service/beneficiary/IdentityBeneficiaryServiceImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "status" 4 times.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Common-API&issues=AZ0Fdv-k3JYEkI94NNnK&open=AZ0Fdv-k3JYEkI94NNnK&pullRequest=377

Check warning on line 440 in src/main/java/com/iemr/common/controller/beneficiary/BeneficiaryRegistrationController.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Immediately return this expression instead of assigning it to the temporary variable "result".

See more on https://sonarcloud.io/project/issues?id=PSMRI_Common-API&issues=AZ0FdwEy3JYEkI94NNnY&open=AZ0FdwEy3JYEkI94NNnY&pullRequest=377

Check warning on line 406 in src/main/java/com/iemr/common/service/beneficiary/IEMRSearchUserServiceImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Either log this exception and handle it, or rethrow it with some contextual information.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Common-API&issues=AZ0Fdv_Q3JYEkI94NNnS&open=AZ0Fdv_Q3JYEkI94NNnS&pullRequest=377

Check warning on line 4 in src/main/java/com/iemr/common/data/users/UserServiceRole.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import 'java.util.Objects'.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Common-API&issues=AZ0FdwBx3JYEkI94NNnT&open=AZ0FdwBx3JYEkI94NNnT&pullRequest=377

Check warning on line 244 in src/main/java/com/iemr/common/service/beneficiary/IdentityBeneficiaryServiceImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a primitive boolean expression here.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Common-API&issues=AZ0Fdv-k3JYEkI94NNnI&open=AZ0Fdv-k3JYEkI94NNnI&pullRequest=377

Check warning on line 40 in src/main/java/com/iemr/common/service/dynamicForm/FormMasterServiceImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this field injection and use constructor injection instead.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Common-API&issues=AZ0Fdv773JYEkI94NNnC&open=AZ0Fdv773JYEkI94NNnC&pullRequest=377

Check warning on line 643 in src/main/java/com/iemr/common/service/beneficiary/IdentityBeneficiaryServiceImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Either log this exception and handle it, or rethrow it with some contextual information.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Common-API&issues=AZ0Fdv-k3JYEkI94NNnN&open=AZ0Fdv-k3JYEkI94NNnN&pullRequest=377

Check failure on line 361 in src/main/java/com/iemr/common/controller/beneficiary/BeneficiaryRegistrationController.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "search" 3 times.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Common-API&issues=AZ0FdwEy3JYEkI94NNna&open=AZ0FdwEy3JYEkI94NNna&pullRequest=377

Check warning on line 349 in src/main/java/com/iemr/common/service/beneficiary/IEMRSearchUserServiceImpl.java

See this annotation in the file changed.

@sonarqubecloud 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_Common-API&issues=AZ0Fdv_Q3JYEkI94NNnP&open=AZ0Fdv_Q3JYEkI94NNnP&pullRequest=377

Check warning on line 34 in src/main/java/com/iemr/common/service/dynamicForm/FormMasterServiceImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this field injection and use constructor injection instead.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Common-API&issues=AZ0Fdv773JYEkI94NNnB&open=AZ0Fdv773JYEkI94NNnB&pullRequest=377

Check failure on line 151 in src/main/java/com/iemr/common/service/beneficiary/IdentityBeneficiaryServiceImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "Success" 8 times.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Common-API&issues=AZ0Fdv-k3JYEkI94NNnJ&open=AZ0Fdv-k3JYEkI94NNnJ&pullRequest=377

Check warning on line 43 in src/main/java/com/iemr/common/service/beneficiary/IEMRSearchUserService.java

See this annotation in the file changed.

@sonarqubecloud 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_Common-API&issues=AZ0Fdv9x3JYEkI94NNnF&open=AZ0Fdv9x3JYEkI94NNnF&pullRequest=377

Check warning on line 231 in src/main/java/com/iemr/common/service/dynamicForm/FormMasterServiceImpl.java

See this annotation in the file changed.

@sonarqubecloud 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_Common-API&issues=AZ0Fdv773JYEkI94NNm_&open=AZ0Fdv773JYEkI94NNm_&pullRequest=377

Check failure on line 279 in src/main/java/com/iemr/common/controller/users/IEMRAdminController.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "userId" 3 times.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Common-API&issues=AZ0FdwD83JYEkI94NNnV&open=AZ0FdwD83JYEkI94NNnV&pullRequest=377

Check warning on line 347 in src/main/java/com/iemr/common/service/beneficiary/IEMRSearchUserServiceImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Either log this exception and handle it, or rethrow it with some contextual information.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Common-API&issues=AZ0Fdv_Q3JYEkI94NNnR&open=AZ0Fdv_Q3JYEkI94NNnR&pullRequest=377

Check warning on line 41 in src/main/java/com/iemr/common/utils/http/HTTPRequestInterceptor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import 'com.iemr.common.utils.CookieUtil'.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Common-API&issues=AZ0FdwFk3JYEkI94NNnf&open=AZ0FdwFk3JYEkI94NNnf&pullRequest=377

Check failure on line 1247 in src/main/java/com/iemr/common/controller/users/IEMRAdminController.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove usage of generic wildcard type.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Common-API&issues=AZ0FdwD83JYEkI94NNnX&open=AZ0FdwD83JYEkI94NNnX&pullRequest=377

Check failure on line 332 in src/main/java/com/iemr/common/controller/beneficiary/BeneficiaryRegistrationController.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "is1097" 5 times.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Common-API&issues=AZ0FdwEy3JYEkI94NNnZ&open=AZ0FdwEy3JYEkI94NNnZ&pullRequest=377

Check warning on line 43 in src/main/java/com/iemr/common/service/beneficiary/IEMRSearchUserService.java

See this annotation in the file changed.

@sonarqubecloud 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_Common-API&issues=AZ0Fdv9x3JYEkI94NNnH&open=AZ0Fdv9x3JYEkI94NNnH&pullRequest=377

Check failure on line 150 in src/main/java/com/iemr/common/service/beneficiary/IdentityBeneficiaryServiceImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "statusCode" 8 times.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Common-API&issues=AZ0Fdv-k3JYEkI94NNnL&open=AZ0Fdv-k3JYEkI94NNnL&pullRequest=377

Check warning on line 32 in src/main/java/com/iemr/common/service/dynamicForm/FormMasterServiceImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this field injection and use constructor injection instead.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Common-API&issues=AZ0Fdv773JYEkI94NNnA&open=AZ0Fdv773JYEkI94NNnA&pullRequest=377

Check warning on line 424 in src/main/java/com/iemr/common/controller/beneficiary/BeneficiaryRegistrationController.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace "@RequestMapping(method = RequestMethod.POST)" with "@PostMapping"

See more on https://sonarcloud.io/project/issues?id=PSMRI_Common-API&issues=AZ0FdwEy3JYEkI94NNnd&open=AZ0FdwEy3JYEkI94NNnd&pullRequest=377