CLVM enhancements and fixes #12617
CLVM enhancements and fixes #12617
Quality Gate failed
Failed conditions
1 Security Hotspot
25.1% Coverage on New Code (required ≥ 40%)
Annotations
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 22 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ0HEtWhtLLcv1u2-kPR&open=AZ0HEtWhtLLcv1u2-kPR&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=AZySVt7WZWnQmdcHvGAu&open=AZySVt7WZWnQmdcHvGAu&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=AZycJTGW331ZRqy8rtid&open=AZycJTGW331ZRqy8rtid&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=AZz35YY_4256DVCsFLrI&open=AZz35YY_4256DVCsFLrI&pullRequest=12617
Check warning on line 2489 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-Dx&open=AZ0sIVjxlpSFCu4-z-Dx&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Invoke method(s) only conditionally.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZz4pqxYEjiWGn0xPnaT&open=AZz4pqxYEjiWGn0xPnaT&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
Remove this use of "Script"; it is deprecated.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZxtJVqBJejGTVrNgEqI&open=AZxtJVqBJejGTVrNgEqI&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=AZxEJ4RLTdhpX5MPbvmD&open=AZxEJ4RLTdhpX5MPbvmD&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
Refactor this method to reduce its Cognitive Complexity from 24 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZxtJVnqJejGTVrNgEqE&open=AZxtJVnqJejGTVrNgEqE&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=AZz35YeN4256DVCsFLrN&open=AZz35YeN4256DVCsFLrN&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Replace this "Map.containsKey()" with a call to "Map.computeIfAbsent()".
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZyLLxaXyspAfen4iU0S&open=AZyLLxaXyspAfen4iU0S&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=AZ0mNDXNmxdebns9DnLi&open=AZ0mNDXNmxdebns9DnLi&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=AZxOatxGxHcHLzahJAAC&open=AZxOatxGxHcHLzahJAAC&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=AZxEJ4RLTdhpX5MPbvmF&open=AZxEJ4RLTdhpX5MPbvmF&pullRequest=12617
Check warning on line 113 in server/src/test/java/com/cloud/storage/ClvmLockManagerTest.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=AZycJTYW331ZRqy8rtiy&open=AZycJTYW331ZRqy8rtiy&pullRequest=12617
Check warning on line 46 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
Check warning on line 43 in server/src/main/java/com/cloud/storage/ClvmLockManager.java
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=AZycJTXm331ZRqy8rtiv&open=AZycJTXm331ZRqy8rtiv&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=AZx43iV5jVPAID_RF5bq&open=AZx43iV5jVPAID_RF5bq&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Use concise character class syntax '\\D' instead of '[^0-9]'.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZxEJ4RLTdhpX5MPbvmG&open=AZxEJ4RLTdhpX5MPbvmG&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=AZ0sIU8XlpSFCu4-z-Dc&open=AZ0sIU8XlpSFCu4-z-Dc&pullRequest=12617
Check warning on line 2515 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-Dy&open=AZ0sIVjxlpSFCu4-z-Dy&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
Define a constant instead of duplicating this literal "null answer returned" 3 times.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZz4pqxYEjiWGn0xPnaU&open=AZz4pqxYEjiWGn0xPnaU&pullRequest=12617