CLVM enhancements and fixes #12617
CLVM enhancements and fixes #12617
Quality Gate failed
Failed conditions
1 Security Hotspot
8.5% Coverage on New Code (required ≥ 40%)
Annotations
Check warning on line 30 in core/src/main/java/com/cloud/agent/api/PostMigrationCommand.java
sonarqubecloud / SonarCloud Code Analysis
Override the "equals" method in this class.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZxtJVhTJejGTVrNgEqA&open=AZxtJVhTJejGTVrNgEqA&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
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
Check warning on line 1142 in server/src/main/java/com/cloud/storage/StorageManagerImpl.java
sonarqubecloud / SonarCloud Code Analysis
Merge this if statement with the enclosing one.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZz35Yk94256DVCsFLrq&open=AZz35Yk94256DVCsFLrq&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Remove this hard-coded path-delimiter.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ0H7qRYrpT77nGx4twU&open=AZ0H7qRYrpT77nGx4twU&pullRequest=12617
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 20 to 14, Nesting Level from 4 to 2, Number of Variables from 21 to 6.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZycJTRR331ZRqy8rtii&open=AZycJTRR331ZRqy8rtii&pullRequest=12617
Check failure on line 2961 in server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java
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=AZxykZ5Qi8wmAtCWzk9u&open=AZxykZ5Qi8wmAtCWzk9u&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=AZz35YY_4256DVCsFLrF&open=AZz35YY_4256DVCsFLrF&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
Check warning on line 1493 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 101 to 64, Complexity from 39 to 14, Nesting Level from 4 to 2, Number of Variables from 29 to 6.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZycJTTp331ZRqy8rtin&open=AZycJTTp331ZRqy8rtin&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
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
Extract this nested try block into a separate method.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZxtJVlFJejGTVrNgEqC&open=AZxtJVlFJejGTVrNgEqC&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Define a constant instead of duplicating this literal "--unbuffered" 3 times.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZz35YeN4256DVCsFLrT&open=AZz35YeN4256DVCsFLrT&pullRequest=12617
Check warning on line 373 in server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.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=AZycJTTp331ZRqy8rtij&open=AZycJTTp331ZRqy8rtij&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
sonarqubecloud / SonarCloud Code Analysis
Merge this if statement with the enclosing one.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZxOattGxHcHLzahI__w&open=AZxOattGxHcHLzahI__w&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Remove this hard-coded path-delimiter.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZz35YY_4256DVCsFLrJ&open=AZz35YY_4256DVCsFLrJ&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=AZycJS_0331ZRqy8rtiY&open=AZycJS_0331ZRqy8rtiY&pullRequest=12617
Check failure on line 2596 in server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 16 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZxykZ5Qi8wmAtCWzk9s&open=AZxykZ5Qi8wmAtCWzk9s&pullRequest=12617
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=AZxOattGxHcHLzahJAAA&open=AZxOattGxHcHLzahJAAA&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=AZxykZwWi8wmAtCWzk9o&open=AZxykZwWi8wmAtCWzk9o&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=AZyLLxjoyspAfen4iU0T&open=AZyLLxjoyspAfen4iU0T&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Invoke method(s) only conditionally.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZz4pqxXEjiWGn0xPnaS&open=AZz4pqxXEjiWGn0xPnaS&pullRequest=12617
sonarqubecloud / SonarCloud Code Analysis
Format specifiers should be used instead of string concatenation.
See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZz35YeN4256DVCsFLrb&open=AZz35YeN4256DVCsFLrb&pullRequest=12617