CLVM enhancements and fixes #12617
CLVM enhancements and fixes #12617
Quality Gate failed
Failed conditions
1 Security Hotspot
33.1% Coverage on New Code (required ≥ 40%)
Annotations
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
Remove this use of "Script"; it is deprecated.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9R1LLXNfHHEi1gr&open=AZ4Ig9R1LLXNfHHEi1gr&pullRequest=12617
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=AZ4Ig9DRLLXNfHHEi1gO&open=AZ4Ig9DRLLXNfHHEi1gO&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=AZ4Ig9bNLLXNfHHEi1if&open=AZ4Ig9bNLLXNfHHEi1if&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=AZ4Ig9bNLLXNfHHEi1iS&open=AZ4Ig9bNLLXNfHHEi1iS&pullRequest=12617
Check warning on line 2513 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=AZ4Ig9n4LLXNfHHEi1jQ&open=AZ4Ig9n4LLXNfHHEi1jQ&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=AZ4Ig9UJLLXNfHHEi1hU&open=AZ4Ig9UJLLXNfHHEi1hU&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=AZ4Ig9bNLLXNfHHEi1iV&open=AZ4Ig9bNLLXNfHHEi1iV&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=AZ4Ig9bNLLXNfHHEi1iK&open=AZ4Ig9bNLLXNfHHEi1iK&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=AZ4Ig9SkLLXNfHHEi1hD&open=AZ4Ig9SkLLXNfHHEi1hD&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Remove this hard-coded path-delimiter.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9SkLLXNfHHEi1hC&open=AZ4Ig9SkLLXNfHHEi1hC&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Define a constant instead of duplicating this literal "/dev/" 10 times.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9SkLLXNfHHEi1g0&open=AZ4Ig9SkLLXNfHHEi1g0&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
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=AZ4Ig9UJLLXNfHHEi1he&open=AZ4Ig9UJLLXNfHHEi1he&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 23 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9DRLLXNfHHEi1gS&open=AZ4Ig9DRLLXNfHHEi1gS&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
Check warning on line 55 in server/src/main/java/com/cloud/storage/clvm/ClvmPoolManager.java
sonarqubecloud / SonarCloud Code Analysis
Rename this field "_hostDao" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9f_LLXNfHHEi1iv&open=AZ4Ig9f_LLXNfHHEi1iv&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=AZ4Ig9SkLLXNfHHEi1hH&open=AZ4Ig9SkLLXNfHHEi1hH&pullRequest=12617
Check failure on line 2885 in server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java
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=AZ4Ig9hlLLXNfHHEi1jB&open=AZ4Ig9hlLLXNfHHEi1jB&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Rename this field "_volsDetailsDao" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9JYLLXNfHHEi1gW&open=AZ4Ig9JYLLXNfHHEi1gW&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=AZ4Ig9YwLLXNfHHEi1hy&open=AZ4Ig9YwLLXNfHHEi1hy&pullRequest=12617
Check failure on line 310 in server/src/main/java/com/cloud/storage/clvm/ClvmPoolManager.java
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 20 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9f_LLXNfHHEi1i7&open=AZ4Ig9f_LLXNfHHEi1i7&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Use the built-in formatting to construct this argument.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9UJLLXNfHHEi1hS&open=AZ4Ig9UJLLXNfHHEi1hS&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_LLXNfHHEi1h_&open=AZ4Ig9a_LLXNfHHEi1h_&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Replace charset name argument with StandardCharsets.UTF_8
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9UJLLXNfHHEi1hd&open=AZ4Ig9UJLLXNfHHEi1hd&pullRequest=12617