CLVM enhancements and fixes #12617
CLVM enhancements and fixes #12617
Quality Gate failed
Failed conditions
1 Security Hotspot
33.8% 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=AZ0mNDXNmxdebns9DnLi&open=AZ0mNDXNmxdebns9DnLi&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=AZz35YY_4256DVCsFLrK&open=AZz35YY_4256DVCsFLrK&pullRequest=12617
Check warning on line 49 in server/src/main/java/com/cloud/storage/ClvmLockManager.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=AZycJTXm331ZRqy8rtit&open=AZycJTXm331ZRqy8rtit&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=AZ1EcZMYlli-YfopRUBQ&open=AZ1EcZMYlli-YfopRUBQ&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=AZz35YeN4256DVCsFLrY&open=AZz35YeN4256DVCsFLrY&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Remove this unused "clustered" local variable.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ1FdYz3oC2Lq8aFxznS&open=AZ1FdYz3oC2Lq8aFxznS&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=AZ1EcZMYlli-YfopRUBP&open=AZ1EcZMYlli-YfopRUBP&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=AZ1EcZMYlli-YfopRUBD&open=AZ1EcZMYlli-YfopRUBD&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=AZz35YeN4256DVCsFLrO&open=AZz35YeN4256DVCsFLrO&pullRequest=12617
Check warning on line 96 in server/src/test/java/com/cloud/storage/ClvmLockManagerTest.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=AZ1pFL1oHBDapnzk6OhR&open=AZ1pFL1oHBDapnzk6OhR&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Update this method so that its implementation is not identical to "testSelectObject_CLVMVolumeWithInvalidLockHostId" on line 476.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ1pFLWKHBDapnzk6Og6&open=AZ1pFLWKHBDapnzk6Og6&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Rename this field "_storagePoolDao" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ0xehRNDDwRlMHM1FEt&open=AZ0xehRNDDwRlMHM1FEt&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=AZ0mNDXNmxdebns9DnLu&open=AZ0mNDXNmxdebns9DnLu&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Define a constant instead of duplicating this literal "--noheadings" 8 times.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZz35YeN4256DVCsFLrQ&open=AZz35YeN4256DVCsFLrQ&pullRequest=12617
Check warning on line 2712 in server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java
sonarqubecloud / SonarCloud Code Analysis
Remove this unused method parameter "vm".
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ0sIVbYlpSFCu4-z-Dm&open=AZ0sIVbYlpSFCu4-z-Dm&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=AZz35YeN4256DVCsFLrZ&open=AZz35YeN4256DVCsFLrZ&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Invoke method(s) only conditionally.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZz35YeN4256DVCsFLrL&open=AZz35YeN4256DVCsFLrL&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=AZz35YeN4256DVCsFLrS&open=AZz35YeN4256DVCsFLrS&pullRequest=12617
Check warning on line 3402 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=AZ1pFLx0HBDapnzk6OhI&open=AZ1pFLx0HBDapnzk6OhI&pullRequest=12617
Check warning on line 4902 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 170 to 64, Complexity from 47 to 14, Nesting Level from 4 to 2, Number of Variables from 31 to 6.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ0sIVbYlpSFCu4-z-Dp&open=AZ0sIVbYlpSFCu4-z-Dp&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=AZ1pcbw51MRvjmKtxodO&open=AZ1pcbw51MRvjmKtxodO&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=AZx43iV5jVPAID_RF5br&open=AZx43iV5jVPAID_RF5br&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Update this method so that its implementation is not identical to "testCLVMVolumePathFormat" on line 246.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ0mNDXNmxdebns9DnLy&open=AZ0mNDXNmxdebns9DnLy&pullRequest=12617
Check warning on line 2549 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=AZ0sIVjxlpSFCu4-z-Dz&open=AZ0sIVjxlpSFCu4-z-Dz&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=AZ0mNDXNmxdebns9DnLr&open=AZ0mNDXNmxdebns9DnLr&pullRequest=12617