Deal with Storage Manager tech debt - #13598
Quality Gate failed
Failed conditions
8.3% Coverage on New Code (required ≥ 40%)
Annotations
Check warning on line 433 in server/src/main/java/com/cloud/storage/StorageManagerImpl.java
sonarqubecloud / SonarCloud Code Analysis
Invoke method(s) only conditionally.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaB7GgVuPiSI7SAy2f7b&open=AaB7GgVuPiSI7SAy2f7b&pullRequest=13598
sonarqubecloud / SonarCloud Code Analysis
No need to call "toString()" method as formatting and string conversion is done by the Formatter.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaB7GgOFPiSI7SAy2f7X&open=AaB7GgOFPiSI7SAy2f7X&pullRequest=13598
Check warning on line 3503 in server/src/main/java/com/cloud/storage/StorageManagerImpl.java
sonarqubecloud / SonarCloud Code Analysis
Invoke method(s) only conditionally.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaB7GgVuPiSI7SAy2f7c&open=AaB7GgVuPiSI7SAy2f7c&pullRequest=13598
Check failure on line 3690 in server/src/main/java/com/cloud/storage/StorageManagerImpl.java
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 22 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaB7GgVuPiSI7SAy2f7f&open=AaB7GgVuPiSI7SAy2f7f&pullRequest=13598
Check warning on line 3510 in server/src/main/java/com/cloud/storage/StorageManagerImpl.java
sonarqubecloud / SonarCloud Code Analysis
Invoke method(s) only conditionally.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaB7GgVuPiSI7SAy2f7d&open=AaB7GgVuPiSI7SAy2f7d&pullRequest=13598
Check warning on line 2063 in server/src/main/java/com/cloud/storage/StorageManagerImpl.java
sonarqubecloud / SonarCloud Code Analysis
Merge this if statement with the enclosing one.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaB7GgVuPiSI7SAy2f7a&open=AaB7GgVuPiSI7SAy2f7a&pullRequest=13598
Check warning on line 2023 in server/src/main/java/com/cloud/storage/StorageManagerImpl.java
sonarqubecloud / SonarCloud Code Analysis
Merge this if statement with the enclosing one.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaB7GgVuPiSI7SAy2f7Z&open=AaB7GgVuPiSI7SAy2f7Z&pullRequest=13598
Check failure on line 825 in server/src/main/java/com/cloud/storage/StorageManagerImpl.java
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 36 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaB7GgVuPiSI7SAy2f7e&open=AaB7GgVuPiSI7SAy2f7e&pullRequest=13598
sonarqubecloud / SonarCloud Code Analysis
Invoke method(s) only conditionally.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaB7GgOFPiSI7SAy2f7W&open=AaB7GgOFPiSI7SAy2f7W&pullRequest=13598
Check warning on line 712 in server/src/main/java/com/cloud/storage/StorageManagerImpl.java
sonarqubecloud / SonarCloud Code Analysis
Merge this if statement with the enclosing one.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaB7GgVuPiSI7SAy2f7Y&open=AaB7GgVuPiSI7SAy2f7Y&pullRequest=13598