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
Remove this use of "Script"; it is deprecated.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9SkLLXNfHHEi1hQ&open=AZ4Ig9SkLLXNfHHEi1hQ&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
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=AZ4Ig9AzLLXNfHHEi1gF&open=AZ4Ig9AzLLXNfHHEi1gF&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
A "Brain Method" was detected. Refactor it to reduce at least one of the following metrics: LOC from 83 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=AZ4Ig9OjLLXNfHHEi1go&open=AZ4Ig9OjLLXNfHHEi1go&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
Remove this use of "Script"; it is deprecated.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9NWLLXNfHHEi1gj&open=AZ4Ig9NWLLXNfHHEi1gj&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Remove this hard-coded path-delimiter.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9SkLLXNfHHEi1hB&open=AZ4Ig9SkLLXNfHHEi1hB&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
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=AZ4Ig9AzLLXNfHHEi1gG&open=AZ4Ig9AzLLXNfHHEi1gG&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Define a constant instead of duplicating this literal "lvcreate" 3 times.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9SkLLXNfHHEi1gy&open=AZ4Ig9SkLLXNfHHEi1gy&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=AZ4Ig9AzLLXNfHHEi1gE&open=AZ4Ig9AzLLXNfHHEi1gE&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=AZ4Ig9bNLLXNfHHEi1iQ&open=AZ4Ig9bNLLXNfHHEi1iQ&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=AZ4Ig9SkLLXNfHHEi1gw&open=AZ4Ig9SkLLXNfHHEi1gw&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=AZ4Ig9SkLLXNfHHEi1hN&open=AZ4Ig9SkLLXNfHHEi1hN&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=AZ4Ig9K5LLXNfHHEi1ga&open=AZ4Ig9K5LLXNfHHEi1ga&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Return an empty array instead of null.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9UJLLXNfHHEi1hZ&open=AZ4Ig9UJLLXNfHHEi1hZ&pullRequest=12617
Check warning on line 2973 in server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java
sonarqubecloud / SonarCloud Code Analysis
Remove this unused private "findVolumeLockHost" method.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9hlLLXNfHHEi1i9&open=AZ4Ig9hlLLXNfHHEi1i9&pullRequest=12617
Check warning on line 119 in server/src/test/java/com/cloud/storage/ClvmPoolManagerTest.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=AZ4Ig9nQLLXNfHHEi1jM&open=AZ4Ig9nQLLXNfHHEi1jM&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
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
Invoke method(s) only conditionally.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9SkLLXNfHHEi1gs&open=AZ4Ig9SkLLXNfHHEi1gs&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Define a constant instead of duplicating this literal "--yes" 3 times.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ4Ig9SkLLXNfHHEi1g2&open=AZ4Ig9SkLLXNfHHEi1g2&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 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=AZ4Ig9XgLLXNfHHEi1hn&open=AZ4Ig9XgLLXNfHHEi1hn&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