Skip to content

Adapt configutil tests to new ConfigureDatabases signature

79b0c76
Select commit
Loading
Failed to load commit list.
Draft

Option to switch off basic-authentication #1168

Adapt configutil tests to new ConfigureDatabases signature
79b0c76
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Apr 24, 2026 in 25s

Quality Gate failed

Annotations

Check warning on line 92 in api/broker/broker.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unnecessary variable declaration and use the expression directly in the condition.

See more on https://sonarcloud.io/project/issues?id=cloudfoundry_app-autoscaler&issues=AZ26n7IUXKDqoXqLX5Oo&open=AZ26n7IUXKDqoXqLX5Oo&pullRequest=1168

Check failure on line 53 in api/config/parser.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=cloudfoundry_app-autoscaler&issues=AZ25eoUQTetRtbx2v5IH&open=AZ25eoUQTetRtbx2v5IH&pullRequest=1168

Check warning on line 7 in models/basic_auth_config.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this interface to follow Go naming conventions for single-method interfaces.

See more on https://sonarcloud.io/project/issues?id=cloudfoundry_app-autoscaler&issues=AZ3AD5O9g_gWIHu9vj6F&open=AZ3AD5O9g_gWIHu9vj6F&pullRequest=1168

Check warning on line 315 in configutil/cf.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unnecessary variable declaration and use the expression directly in the condition.

See more on https://sonarcloud.io/project/issues?id=cloudfoundry_app-autoscaler&issues=AZ3AD5Ueg_gWIHu9vj6G&open=AZ3AD5Ueg_gWIHu9vj6G&pullRequest=1168

Check failure on line 15 in models/basic_auth_config.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a nested comment explaining why this function is empty or complete the implementation.

See more on https://sonarcloud.io/project/issues?id=cloudfoundry_app-autoscaler&issues=AZ3AD5O9g_gWIHu9vj6D&open=AZ3AD5O9g_gWIHu9vj6D&pullRequest=1168

Check failure on line 25 in models/basic_auth_config.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a nested comment explaining why this function is empty or complete the implementation.

See more on https://sonarcloud.io/project/issues?id=cloudfoundry_app-autoscaler&issues=AZ3AD5O9g_gWIHu9vj6E&open=AZ3AD5O9g_gWIHu9vj6E&pullRequest=1168