Skip to content

config cleanup - #13884

Open
DaanHoogland wants to merge 49 commits into
mainfrom
ghi10752-configCleanup
Open

DaanHoogland wants to merge 49 commits into
mainfrom
ghi10752-configCleanup

more literals removed

26780fd
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Sep 8, 2026 in 9m 34s

Quality Gate failed

Failed conditions
26.3% Coverage on New Code (required ≥ 40%)
C Reliability Rating on New Code (required ≥ B)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Annotations

Check failure on line 77 in server/src/main/java/com/cloud/projects/ProjectManager.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename method "allowUserToCreateProject" to prevent any misunderstanding/clash with field "AllowUserToCreateProject".

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaAFdWJnqJXQQ7HDE9SN&open=AaAFdWJnqJXQQ7HDE9SN&pullRequest=13884

Check warning on line 3510 in server/src/main/java/com/cloud/user/AccountManagerImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a primitive boolean expression here.

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaAKNg3S3ej0ChNocDo2&open=AaAKNg3S3ej0ChNocDo2&pullRequest=13884

Check warning on line 1200 in services/secondary-storage/controller/src/main/java/org/apache/cloudstack/secondarystorage/SecondaryStorageManagerImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaAHqutURdE24u2TNGQT&open=AaAHqutURdE24u2TNGQT&pullRequest=13884

Check failure on line 45 in server/src/main/java/com/cloud/configuration/Config.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "Alert" 3 times.

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaAFdWPKqJXQQ7HDE9SO&open=AaAFdWPKqJXQQ7HDE9SO&pullRequest=13884

Check failure on line 893 in server/src/main/java/com/cloud/network/NetworkServiceImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 32 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaAHMUnuH6sOtJrG0c_a&open=AaAHMUnuH6sOtJrG0c_a&pullRequest=13884

Check failure on line 192 in server/src/main/java/com/cloud/user/AccountManager.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "Advanced" 4 times.

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaAHMU6_H6sOtJrG0c_f&open=AaAHMU6_H6sOtJrG0c_f&pullRequest=13884

Check failure on line 380 in server/src/main/java/com/cloud/server/StatsCollector.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename field "vmStatsInterval" to prevent any misunderstanding/clash with field "VmStatsInterval".

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaAHMU2cH6sOtJrG0c_d&open=AaAHMU2cH6sOtJrG0c_d&pullRequest=13884

Check failure on line 276 in server/src/main/java/com/cloud/server/StatsCollector.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "60000" 5 times.

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaAHMU2cH6sOtJrG0c_b&open=AaAHMU2cH6sOtJrG0c_b&pullRequest=13884

Check warning on line 2510 in server/src/test/java/com/cloud/server/ManagementServerImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "verify".

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaAPZ2qNGw8sSOR9q8QR&open=AaAPZ2qNGw8sSOR9q8QR&pullRequest=13884

Check warning on line 5631 in server/src/main/java/com/cloud/vm/UserVmManagerImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaAKNhAW3ej0ChNocDo3&open=AaAKNhAW3ej0ChNocDo3&pullRequest=13884

Check warning on line 1429 in server/src/test/java/com/cloud/configuration/ConfigurationManagerTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "when".

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaAHquo6RdE24u2TNGQS&open=AaAHquo6RdE24u2TNGQS&pullRequest=13884

Check failure on line 183 in server/src/main/java/com/cloud/server/ConfigurationServerImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "false" 3 times.

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaAGbHevTV2yRQvmzXMz&open=AaAGbHevTV2yRQvmzXMz&pullRequest=13884

Check failure on line 52 in api/src/main/java/com/cloud/user/ResourceLimitService.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "Domain Defaults" 13 times.

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaAFdVv5qJXQQ7HDE9R7&open=AaAFdVv5qJXQQ7HDE9R7&pullRequest=13884

Check failure on line 35 in plugins/network-elements/elastic-loadbalancer/src/main/java/com/cloud/network/lb/ElasticLoadBalancerManager.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "Advanced" 4 times.

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaAHqtW-RdE24u2TNGQJ&open=AaAHqtW-RdE24u2TNGQJ&pullRequest=13884

Check warning on line 142 in server/src/main/java/com/cloud/network/ExternalLoadBalancerDeviceManagerImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Split this “Monster Class” into smaller and more specialized ones to reduce its dependencies on other classes from 37 to the maximum authorized 20 or less.

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaAHqt8KRdE24u2TNGQK&open=AaAHqt8KRdE24u2TNGQK&pullRequest=13884

Check failure on line 57 in server/src/main/java/com/cloud/server/ManagementServer.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "Hidden" 10 times.

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaAFdWBdqJXQQ7HDE9R_&open=AaAFdWBdqJXQQ7HDE9R_&pullRequest=13884

Check warning on line 45 in server/src/test/java/com/cloud/resource/DiscovererBaseTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "when".

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaAPZ2ubGw8sSOR9q8QU&open=AaAPZ2ubGw8sSOR9q8QU&pullRequest=13884

Check failure on line 38 in engine/components-api/src/main/java/com/cloud/network/security/SecurityGroupManager.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "Network" 4 times.

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaAFdVstqJXQQ7HDE9R2&open=AaAFdVstqJXQQ7HDE9R2&pullRequest=13884

Check warning on line 120 in server/src/main/java/com/cloud/network/ExternalFirewallDeviceManagerImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Split this “Monster Class” into smaller and more specialized ones to reduce its dependencies on other classes from 31 to the maximum authorized 20 or less.

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaAHquAoRdE24u2TNGQL&open=AaAHquAoRdE24u2TNGQL&pullRequest=13884

Check warning on line 150 in server/src/main/java/com/cloud/alert/AlertManagerImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the "_privateIPCapacityThreshold" field and declare it as a local variable in the relevant methods.

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaAFdWG4qJXQQ7HDE9SG&open=AaAFdWG4qJXQQ7HDE9SG&pullRequest=13884

Check warning on line 952 in server/src/main/java/com/cloud/network/router/NetworkHelperImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaAFdV7tqJXQQ7HDE9R9&open=AaAFdV7tqJXQQ7HDE9R9&pullRequest=13884

Check failure on line 39 in server/src/main/java/com/cloud/server/ManagementServer.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "Advanced" 37 times.

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaAHquINRdE24u2TNGQP&open=AaAHquINRdE24u2TNGQP&pullRequest=13884

Check failure on line 382 in server/src/main/java/com/cloud/server/StatsCollector.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename field "volumeStatsInterval" to prevent any misunderstanding/clash with field "VolumeStatsInterval".

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaAHMU2cH6sOtJrG0c_e&open=AaAHMU2cH6sOtJrG0c_e&pullRequest=13884

Check failure on line 45 in server/src/main/java/com/cloud/server/ManagementServer.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "false" 6 times.

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaAHquINRdE24u2TNGQO&open=AaAHquINRdE24u2TNGQO&pullRequest=13884

Check failure on line 87 in api/src/main/java/com/cloud/network/NetworkService.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "Network" 3 times.

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaAHMUAhH6sOtJrG0c_Z&open=AaAHMUAhH6sOtJrG0c_Z&pullRequest=13884