CLVM enhancements and fixes #12617
CLVM enhancements and fixes #12617
Quality Gate failed
Failed conditions
1 Security Hotspot
33.5% Coverage on New Code (required ≥ 40%)
Annotations
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 18 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig8_7LLXNfHHEi1gC&open=AZ4Ig8_7LLXNfHHEi1gC&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
A "Brain Method" was detected. Refactor it to reduce at least one of the following metrics: LOC from 80 to 64, Complexity from 15 to 14, Nesting Level from 4 to 2, Number of Variables from 19 to 6.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4pg0nfI-vGf32cl18a&open=AZ4pg0nfI-vGf32cl18a&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 2522 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=AZ4Ig9n4LLXNfHHEi1jR&open=AZ4Ig9n4LLXNfHHEi1jR&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=AZ4Ig9bNLLXNfHHEi1iM&open=AZ4Ig9bNLLXNfHHEi1iM&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Remove this field injection and use constructor injection instead.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9JYLLXNfHHEi1gX&open=AZ4Ig9JYLLXNfHHEi1gX&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
"logger" is the name of a field in "CommandWrapper".
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9OOLLXNfHHEi1gm&open=AZ4Ig9OOLLXNfHHEi1gm&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
Refactor this method to reduce its Cognitive Complexity from 18 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ5mOf9VTZn6QeIQ70Y6&open=AZ5mOf9VTZn6QeIQ70Y6&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_LLXNfHHEi1iC&open=AZ4Ig9a_LLXNfHHEi1iC&pullRequest=12617
Check warning on line 3519 in server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java
sonarqubecloud / SonarCloud Code Analysis
A "Brain Method" was detected. Refactor it to reduce at least one of the following metrics: LOC from 89 to 64, Complexity from 22 to 14, Nesting Level from 4 to 2, Number of Variables from 27 to 6.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9hlLLXNfHHEi1jI&open=AZ4Ig9hlLLXNfHHEi1jI&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
Override the "equals" method in this class.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9MnLLXNfHHEi1gf&open=AZ4Ig9MnLLXNfHHEi1gf&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Remove the declaration of thrown exception 'java.lang.Exception', as it cannot be thrown from method's body.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4pg0kuI-vGf32cl18V&open=AZ4pg0kuI-vGf32cl18V&pullRequest=12617
Check failure on line 148 in server/src/main/java/com/cloud/storage/clvm/ClvmPoolManager.java
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 35 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9f_LLXNfHHEi1i2&open=AZ4Ig9f_LLXNfHHEi1i2&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Method has 8 parameters, which is greater than 7 authorized.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9UJLLXNfHHEi1hW&open=AZ4Ig9UJLLXNfHHEi1hW&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Define a constant instead of duplicating this literal "--output=json" 3 times.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9SkLLXNfHHEi1gz&open=AZ4Ig9SkLLXNfHHEi1gz&pullRequest=12617
Check warning on line 115 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_LLXNfHHEi1i1&open=AZ4Ig9f_LLXNfHHEi1i1&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Remove this field injection and use constructor injection instead.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig8_7LLXNfHHEi1gB&open=AZ4Ig8_7LLXNfHHEi1gB&pullRequest=12617
Check warning on line 108 in server/src/test/java/com/cloud/storage/ClvmPoolManagerTest.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=AZ4Ig9nQLLXNfHHEi1jL&open=AZ4Ig9nQLLXNfHHEi1jL&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Invoke method(s) only conditionally.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9XULLXNfHHEi1hj&open=AZ4Ig9XULLXNfHHEi1hj&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Replace these 8 tests with a single Parameterized one.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9YwLLXNfHHEi1hw&open=AZ4Ig9YwLLXNfHHEi1hw&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
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=AZ4Ig83DLLXNfHHEi1fx&open=AZ4Ig83DLLXNfHHEi1fx&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