CLVM enhancements and fixes #12617
CLVM enhancements and fixes #12617
Quality Gate failed
Failed conditions
1 Security Hotspot
33.0% Coverage on New Code (required ≥ 40%)
Annotations
sonarqubecloud / SonarCloud Code Analysis
Add at least one assertion to this test case.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9bNLLXNfHHEi1iK&open=AZ4Ig9bNLLXNfHHEi1iK&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Remove the declaration of thrown exception 'org.libvirt.LibvirtException', as it cannot be thrown from method's body.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9XgLLXNfHHEi1hu&open=AZ4Ig9XgLLXNfHHEi1hu&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 19 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9SkLLXNfHHEi1hO&open=AZ4Ig9SkLLXNfHHEi1hO&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Extract this nested ternary operation into an independent statement.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9SkLLXNfHHEi1g_&open=AZ4Ig9SkLLXNfHHEi1g_&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Add at least one assertion to this test case.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9a_LLXNfHHEi1h9&open=AZ4Ig9a_LLXNfHHEi1h9&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Remove this and every subsequent useless "eq(...)" invocation; pass the values directly.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9K5LLXNfHHEi1gZ&open=AZ4Ig9K5LLXNfHHEi1gZ&pullRequest=12617
Check warning on line 53 in server/src/main/java/com/cloud/storage/clvm/ClvmPoolManager.java
sonarqubecloud / SonarCloud Code Analysis
Rename this field "_agentMgr" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9f_LLXNfHHEi1iu&open=AZ4Ig9f_LLXNfHHEi1iu&pullRequest=12617
Check warning on line 162 in server/src/main/java/com/cloud/storage/clvm/ClvmPoolManager.java
sonarqubecloud / SonarCloud Code Analysis
Remove this use of "getClvmLockHostId"; it is deprecated.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9f_LLXNfHHEi1i3&open=AZ4Ig9f_LLXNfHHEi1i3&pullRequest=12617
Check warning on line 195 in server/src/main/java/com/cloud/storage/clvm/ClvmPoolManager.java
sonarqubecloud / SonarCloud Code Analysis
Reduce the total number of break and continue statements in this loop to use at most one.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9f_LLXNfHHEi1is&open=AZ4Ig9f_LLXNfHHEi1is&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
A "Brain Method" was detected. Refactor it to reduce at least one of the following metrics: LOC from 79 to 64, Complexity from 20 to 14, Nesting Level from 5 to 2, Number of Variables from 22 to 6.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9UJLLXNfHHEi1hh&open=AZ4Ig9UJLLXNfHHEi1hh&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Add at least one assertion to this test case.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9bNLLXNfHHEi1ie&open=AZ4Ig9bNLLXNfHHEi1ie&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Remove this hard-coded path-delimiter.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9SkLLXNfHHEi1hK&open=AZ4Ig9SkLLXNfHHEi1hK&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
A "Brain Method" was detected. Refactor it to reduce at least one of the following metrics: LOC from 79 to 64, Complexity from 21 to 14, Nesting Level from 5 to 2, Number of Variables from 25 to 6.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9DRLLXNfHHEi1gV&open=AZ4Ig9DRLLXNfHHEi1gV&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Merge this if statement with the enclosing one.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig8_7LLXNfHHEi1gA&open=AZ4Ig8_7LLXNfHHEi1gA&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Rename this field "_volDetailsDao" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig87pLLXNfHHEi1f4&open=AZ4Ig87pLLXNfHHEi1f4&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Add at least one assertion to this test case.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9bNLLXNfHHEi1iU&open=AZ4Ig9bNLLXNfHHEi1iU&pullRequest=12617
Check warning on line 2664 in server/src/test/java/com/cloud/storage/VolumeApiServiceImplTest.java
sonarqubecloud / SonarCloud Code Analysis
Remove this and every subsequent useless "eq(...)" invocation; pass the values directly.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9n4LLXNfHHEi1jV&open=AZ4Ig9n4LLXNfHHEi1jV&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Extract this nested try block into a separate method.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9UJLLXNfHHEi1hT&open=AZ4Ig9UJLLXNfHHEi1hT&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to not always return the same value.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9XULLXNfHHEi1hi&open=AZ4Ig9XULLXNfHHEi1hi&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Remove this hard-coded path-delimiter.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9SkLLXNfHHEi1g6&open=AZ4Ig9SkLLXNfHHEi1g6&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Rename "details" which hides the field declared at line 260.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9YwLLXNfHHEi1hz&open=AZ4Ig9YwLLXNfHHEi1hz&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Add at least one assertion to this test case.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9bNLLXNfHHEi1iJ&open=AZ4Ig9bNLLXNfHHEi1iJ&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Remove this use of "Script"; it is deprecated.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9SkLLXNfHHEi1hM&open=AZ4Ig9SkLLXNfHHEi1hM&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 17 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig83DLLXNfHHEi1f2&open=AZ4Ig83DLLXNfHHEi1f2&pullRequest=12617
Check warning on line 2582 in server/src/test/java/com/cloud/storage/VolumeApiServiceImplTest.java
sonarqubecloud / SonarCloud Code Analysis
Remove this and every subsequent useless "eq(...)" invocation; pass the values directly.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9n4LLXNfHHEi1jT&open=AZ4Ig9n4LLXNfHHEi1jT&pullRequest=12617